]>
Commit | Line | Data |
---|---|---|
e74abb32 | 1 | error[E0277]: the trait bound `(): MyTrait` is not satisfied |
74b04a01 | 2 | --> $DIR/reservation-impl-no-use.rs:10:26 |
e74abb32 XL |
3 | | |
4 | LL | trait MyTrait { fn foo(&self); } | |
5 | | -------------- required by `MyTrait::foo` | |
6 | ... | |
7 | LL | <() as MyTrait>::foo(&()); | |
8 | | ^^^ the trait `MyTrait` is not implemented for `()` | |
9 | | | |
10 | = help: the following implementations were found: | |
11 | <() as MyTrait> | |
12 | ||
13 | error: aborting due to previous error | |
14 | ||
15 | For more information about this error, try `rustc --explain E0277`. |