]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/invalid-bin-op.stderr
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / ui / suggestions / invalid-bin-op.stderr
1 error[E0369]: binary operation `==` cannot be applied to type `S<T>`
2   --> $DIR/invalid-bin-op.rs:2:15
3    |
4 LL |     let _ = s == t;
5    |             - ^^ - S<T>
6    |             |
7    |             S<T>
8    |
9 note: an implementation of `PartialEq<_>` might be missing for `S<T>`
10   --> $DIR/invalid-bin-op.rs:5:1
11    |
12 LL | struct S<T>(T);
13    | ^^^^^^^^^^^^^^^ must implement `PartialEq<_>`
14    = note: the trait `std::cmp::PartialEq` is not implemented for `S<T>`
15 help: consider annotating `S<T>` 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 E0369`.