2022-07-25 03:17:00 -05:00
|
|
|
error[E0277]: can't compare `T` with `_` in const contexts
|
|
|
|
--> $DIR/call-generic-method-fail.rs:4:8
|
2022-01-28 04:57:29 -06:00
|
|
|
|
|
|
|
|
LL | *t == *t
|
2022-07-25 03:17:00 -05:00
|
|
|
| ^^ no implementation for `T == _`
|
2022-02-10 03:22:54 -06:00
|
|
|
|
|
2022-07-25 03:17:00 -05:00
|
|
|
note: the trait `PartialEq<_>` is implemented for `T`, but that implementation is not `const`
|
|
|
|
--> $DIR/call-generic-method-fail.rs:4:8
|
2022-02-10 03:22:54 -06:00
|
|
|
|
|
|
|
|
LL | *t == *t
|
2022-07-25 03:17:00 -05:00
|
|
|
| ^^
|
2022-01-28 04:57:29 -06:00
|
|
|
|
2022-07-25 03:17:00 -05:00
|
|
|
error: aborting due to previous error
|
2020-11-21 21:19:46 -06:00
|
|
|
|
2022-07-25 03:17:00 -05:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|