]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/call-generic-method-fail.stderr
Rollup merge of #99244 - gthb:doc-improve-iterator-scan, r=m-ou-se
[rust.git] / src / test / ui / rfc-2632-const-trait-impl / call-generic-method-fail.stderr
1 error[E0277]: can't compare `T` with `_` in const contexts
2   --> $DIR/call-generic-method-fail.rs:4:8
3    |
4 LL |     *t == *t
5    |        ^^ no implementation for `T == _`
6    |
7 note: the trait `PartialEq<_>` is implemented for `T`, but that implementation is not `const`
8   --> $DIR/call-generic-method-fail.rs:4:8
9    |
10 LL |     *t == *t
11    |        ^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.