Commit e70724c 1 parent 99dc545 commit e70724c Copy full SHA for e70724c
File tree 2 files changed +3
-3
lines changed
test/ui/traits/reservation-impls
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -560,7 +560,7 @@ impl<T> From<T> for T {
560
560
///
561
561
/// [#64715]: https://github.com/rust-lang/rust/issues/64715
562
562
#[ stable( feature = "convert_infallible" , since = "1.34.0" ) ]
563
- #[ cfg( not( boostrap_stdarch_ignore_this ) ) ]
563
+ #[ cfg( not( bootstrap ) ) ]
564
564
#[ rustc_reservation_impl="permitting this impl would forbid us from adding \
565
565
`impl<T> From<!> for T` later; see rust-lang/rust#64715 for details"]
566
566
impl < T > From < !> for T {
Original file line number Diff line number Diff line change 1
1
error[E0277]: the trait bound `(): MyTrait` is not satisfied
2
- --> $DIR/reservation-impl-no-use.rs:12:5
2
+ --> $DIR/reservation-impl-no-use.rs:12:26
3
3
|
4
4
LL | trait MyTrait { fn foo(&self); }
5
5
| -------------- required by `MyTrait::foo`
6
6
...
7
7
LL | <() as MyTrait>::foo(&());
8
- | ^^^^^^^^^^^^^^^^^ ^^^ the trait `MyTrait` is not implemented for `()`
8
+ | ^^^ the trait `MyTrait` is not implemented for `()`
9
9
|
10
10
= help: the following implementations were found:
11
11
<() as MyTrait>
You can’t perform that action at this time.
0 commit comments