]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/call-generic-method-fail.stderr
Rollup merge of #99789 - TaKO8Ki:use-pluralize-macro, r=compiler-errors
[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    = help: the trait `PartialEq<&B>` is implemented for `&A`
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0277`.