2019-07-13 22:52:57 +03: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 22:52:57 +03:00
|
|
|
|
|
|
|
|
LL | <() as MyTrait>::foo(&());
|
2023-08-26 19:25:46 +00:00
|
|
|
| ^^ the trait `MyTrait` is not implemented for `()`
|
2019-07-13 22:52:57 +03:00
|
|
|
|
|
2021-12-13 20:56:40 +00:00
|
|
|
= help: the trait `MyTrait` is implemented for `()`
|
2019-07-13 22:52:57 +03:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|