File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
test/ui/traits/reservation-impls Expand file tree Collapse file tree 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 {
560560///
561561/// [#64715]: https://github.com/rust-lang/rust/issues/64715
562562#[ stable( feature = "convert_infallible" , since = "1.34.0" ) ]
563- #[ cfg( not( boostrap_stdarch_ignore_this ) ) ]
563+ #[ cfg( not( bootstrap ) ) ]
564564#[ rustc_reservation_impl="permitting this impl would forbid us from adding \
565565 `impl<T> From<!> for T` later; see rust-lang/rust#64715 for details"]
566566impl < T > From < !> for T {
Original file line number Diff line number Diff line change 11error[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
33 |
44LL | trait MyTrait { fn foo(&self); }
55 | -------------- required by `MyTrait::foo`
66...
77LL | <() as MyTrait>::foo(&());
8- | ^^^^^^^^^^^^^^^^^ ^^^ the trait `MyTrait` is not implemented for `()`
8+ | ^^^ the trait `MyTrait` is not implemented for `()`
99 |
1010 = help: the following implementations were found:
1111 <() as MyTrait>
You can’t perform that action at this time.
0 commit comments