@@ -11,10 +11,10 @@ note: an implementation of `PartialEq` might be missing for `T1`
1111 |
1212LL | struct T1;
1313 | ^^^^^^^^^ must implement `PartialEq`
14- note: the foreign item type `std::io::Error` doesn't implement `PartialEq`
14+ note: `std::io::Error` does not implement `PartialEq`
1515 --> $SRC_DIR/std/src/io/error.rs:LL:COL
1616 |
17- = note: not implement `PartialEq`
17+ = note: `std::io::Error` is defined in another crate
1818help: consider annotating `T1` with `#[derive(PartialEq)]`
1919 |
2020LL + #[derive(PartialEq)]
@@ -29,13 +29,14 @@ LL | (Error::new(ErrorKind::Other, "2"), thread::current())
2929LL | == (Error::new(ErrorKind::Other, "2"), thread::current());
3030 | ^^ ------------------------------------------------------ (std::io::Error, Thread)
3131 |
32- note: the foreign item types don't implement required traits for this operation to be valid
33- --> $SRC_DIR/std/src/io/error.rs:LL:COL
34- |
35- = note: not implement `PartialEq`
32+ note: `Thread` does not implement `PartialEq`
3633 --> $SRC_DIR/std/src/thread/mod.rs:LL:COL
3734 |
38- = note: not implement `PartialEq`
35+ = note: `Thread` is defined in another crate
36+ note: `std::io::Error` does not implement `PartialEq`
37+ --> $SRC_DIR/std/src/io/error.rs:LL:COL
38+ |
39+ = note: `std::io::Error` is defined in another crate
3940
4041error[E0369]: binary operation `==` cannot be applied to type `(std::io::Error, Thread, T1, T2)`
4142 --> $DIR/binary-op-not-allowed-issue-125631.rs:14:9
@@ -52,13 +53,14 @@ LL | struct T1;
5253 | ^^^^^^^^^ must implement `PartialEq`
5354LL | struct T2;
5455 | ^^^^^^^^^ must implement `PartialEq`
55- note: the foreign item types don't implement required traits for this operation to be valid
56- --> $SRC_DIR/std/src/io/error.rs:LL:COL
57- |
58- = note: not implement `PartialEq`
56+ note: `Thread` does not implement `PartialEq`
5957 --> $SRC_DIR/std/src/thread/mod.rs:LL:COL
6058 |
61- = note: not implement `PartialEq`
59+ = note: `Thread` is defined in another crate
60+ note: `std::io::Error` does not implement `PartialEq`
61+ --> $SRC_DIR/std/src/io/error.rs:LL:COL
62+ |
63+ = note: `std::io::Error` is defined in another crate
6264help: consider annotating `T1` with `#[derive(PartialEq)]`
6365 |
6466LL + #[derive(PartialEq)]
0 commit comments