fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: can't compare `&T` with `T` 2 --> $DIR/partialeq_help.rs:2:7 3 | 4LL | a == b; 5 | ^^ no implementation for `&T == T` 6 | 7 = help: the trait `PartialEq<T>` is not implemented for `&T` 8help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement 9 | 10LL | fn foo<T: PartialEq>(a: &T, b: T) where &T: PartialEq<T> { 11 | ++++++++++++++++++++++ 12 13error[E0277]: can't compare `&T` with `T` 14 --> $DIR/partialeq_help.rs:6:7 15 | 16LL | a == b; 17 | ^^ no implementation for `&T == T` 18 | 19 = help: the trait `PartialEq<T>` is not implemented for `&T` 20help: consider extending the `where` clause, but there might be an alternative better way to express this requirement 21 | 22LL | fn foo2<T: PartialEq>(a: &T, b: T) where &T: PartialEq<T> { 23 | ++++++++++++++++ 24 25error: aborting due to 2 previous errors 26 27For more information about this error, try `rustc --explain E0277`.