2019-07-13 14:52:57 -05:00
|
|
|
error[E0277]: the trait bound `(): MyTrait` is not satisfied
|
2023-03-21 10:26:23 -05:00
|
|
|
--> $DIR/no-use.rs:11:26
|
2019-07-13 14:52:57 -05:00
|
|
|
|
|
|
|
|
LL | <() as MyTrait>::foo(&());
|
2021-09-07 06:30:53 -05:00
|
|
|
| -------------------- ^^^ the trait `MyTrait` is not implemented for `()`
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2019-07-13 14:52:57 -05:00
|
|
|
|
|
2021-12-13 14:56:40 -06:00
|
|
|
= help: the trait `MyTrait` is implemented for `()`
|
2019-07-13 14:52:57 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|