]>
Commit | Line | Data |
---|---|---|
064997fb FG |
1 | error[E0277]: can't compare `T` with `_` in const contexts |
2 | --> $DIR/call-generic-method-fail.rs:4:8 | |
5099ac24 FG |
3 | | |
4 | LL | *t == *t | |
064997fb | 5 | | ^^ no implementation for `T == _` |
5099ac24 | 6 | | |
064997fb FG |
7 | note: the trait `PartialEq<_>` is implemented for `T`, but that implementation is not `const` |
8 | --> $DIR/call-generic-method-fail.rs:4:8 | |
fc512014 XL |
9 | | |
10 | LL | *t == *t | |
064997fb FG |
11 | | ^^ |
12 | = help: the trait `PartialEq<&B>` is implemented for `&A` | |
fc512014 | 13 | |
064997fb | 14 | error: aborting due to previous error |
fc512014 | 15 | |
064997fb | 16 | For more information about this error, try `rustc --explain E0277`. |