]> git.proxmox.com Git - rustc.git/blame - tests/ui/error-codes/E0277-3.stderr
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / error-codes / E0277-3.stderr
CommitLineData
04454e1e
FG
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 |
353b0b11
FG
17LL + #[derive(PartialEq)]
18LL | struct S;
04454e1e
FG
19 |
20
21error: aborting due to previous error
22
23For more information about this error, try `rustc --explain E0277`.