]> git.lizzy.rs Git - rust.git/blob - src/test/ui/partialeq_help.stderr
Rollup merge of #97317 - GuillaumeGomez:gui-settings-text-click, r=jsha
[rust.git] / src / test / ui / partialeq_help.stderr
1 error[E0277]: can't compare `&T` with `T`
2   --> $DIR/partialeq_help.rs:2:7
3    |
4 LL |     a == b;
5    |       ^^ no implementation for `&T == T`
6    |
7    = help: the trait `PartialEq<T>` is not implemented for `&T`
8 help: consider introducing a `where` bound, but there might be an alternative better way to express this requirement
9    |
10 LL | fn foo<T: PartialEq>(a: &T, b: T) where &T: PartialEq<T> {
11    |                                   ++++++++++++++++++++++
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.