address rebase damage
This commit is contained in:
parent
99dc545552
commit
e70724c23b
2 changed files with 3 additions and 3 deletions
|
@ -560,7 +560,7 @@ impl<T> From<T> for T {
|
|||
///
|
||||
/// [#64715]: https://github.com/rust-lang/rust/issues/64715
|
||||
#[stable(feature = "convert_infallible", since = "1.34.0")]
|
||||
#[cfg(not(boostrap_stdarch_ignore_this))]
|
||||
#[cfg(not(bootstrap))]
|
||||
#[rustc_reservation_impl="permitting this impl would forbid us from adding \
|
||||
`impl<T> From<!> for T` later; see rust-lang/rust#64715 for details"]
|
||||
impl<T> From<!> for T {
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
error[E0277]: the trait bound `(): MyTrait` is not satisfied
|
||||
--> $DIR/reservation-impl-no-use.rs:12:5
|
||||
--> $DIR/reservation-impl-no-use.rs:12:26
|
||||
|
|
||||
LL | trait MyTrait { fn foo(&self); }
|
||||
| -------------- required by `MyTrait::foo`
|
||||
...
|
||||
LL | <() as MyTrait>::foo(&());
|
||||
| ^^^^^^^^^^^^^^^^^^^^ the trait `MyTrait` is not implemented for `()`
|
||||
| ^^^ the trait `MyTrait` is not implemented for `()`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<() as MyTrait>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue