]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0277-3.stderr
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / error-codes / E0277-3.stderr
1 error[E0277]: can't compare `S` with `S`
2   --> $DIR/E0277-3.rs:6:9
3    |
4 LL |     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`
10 note: required by a bound in `foo`
11   --> $DIR/E0277-3.rs:1:11
12    |
13 LL | fn foo<T: PartialEq>(_: T) {}
14    |           ^^^^^^^^^ required by this bound in `foo`
15 help: consider annotating `S` with `#[derive(PartialEq)]`
16    |
17 LL | #[derive(PartialEq)]
18    |
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0277`.