fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: can't compare `S` with `S` 2 --> $DIR/E0277-3.rs:6:9 3 | 4LL | foo(S); 5 | --- ^ no implementation for `S == S` 6 | | 7 | required by a bound introduced by this call 8 | 9 = help: the trait `PartialEq` is not implemented for `S` 10note: required by a bound in `foo` 11 --> $DIR/E0277-3.rs:1:11 12 | 13LL | fn foo<T: PartialEq>(_: T) {} 14 | ^^^^^^^^^ required by this bound in `foo` 15help: consider annotating `S` with `#[derive(PartialEq)]` 16 | 17LL + #[derive(PartialEq)] 18LL | struct S; 19 | 20 21error: aborting due to previous error 22 23For more information about this error, try `rustc --explain E0277`.