rust/tests/ui/traits/reservation-impl/no-use.old.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
359 B
Plaintext
Raw Normal View History

2019-07-13 19:52:57 +00:00
error[E0277]: the trait bound `(): MyTrait` is not satisfied
2023-08-26 19:25:46 +00:00
--> $DIR/no-use.rs:11:6
2019-07-13 19:52:57 +00:00
|
LL | <() as MyTrait>::foo(&());
2023-08-26 19:25:46 +00:00
| ^^ the trait `MyTrait` is not implemented for `()`
2019-07-13 19:52:57 +00:00
|
= help: the trait `MyTrait` is implemented for `()`
2019-07-13 19:52:57 +00:00
error: aborting due to 1 previous error
2019-07-13 19:52:57 +00:00
For more information about this error, try `rustc --explain E0277`.