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