rust/tests/ui/rfc-2632-const-trait-impl/call-generic-method-fail.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
459 B
Plaintext
Raw Normal View History

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
|
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-07-25 03:17:00 -05:00
error: aborting due to previous error
2022-07-25 03:17:00 -05:00
For more information about this error, try `rustc --explain E0277`.