@@ -11,7 +11,7 @@ LL | impl TheTrait<usize> for isize { }
1111 = note: define and implement a trait or new type instead
1212
1313error[E0117]: only traits defined in the current crate can be implemented for types defined outside of the crate
14- --> $DIR/coherence-orphan.rs:17 :1
14+ --> $DIR/coherence-orphan.rs:20 :1
1515 |
1616LL | impl !Send for Vec<isize> { }
1717 | ^^^^^^^^^^^^^^^----------
@@ -22,7 +22,7 @@ LL | impl !Send for Vec<isize> { }
2222 = note: define and implement a trait or new type instead
2323
2424warning: cross-crate traits with a default impl, like `Send`, should not be specialized
25- --> $DIR/coherence-orphan.rs:17 :1
25+ --> $DIR/coherence-orphan.rs:20 :1
2626 |
2727LL | impl !Send for Vec<isize> { }
2828 | ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -34,6 +34,31 @@ note: try using the same sequence of generic parameters as the struct definition
3434 --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
3535 = note: `#[warn(suspicious_auto_trait_impls)]` on by default
3636
37- error: aborting due to 2 previous errors; 1 warning emitted
37+ error[E0046]: not all trait items implemented, missing: `the_fn`
38+ --> $DIR/coherence-orphan.rs:10:1
39+ |
40+ LL | impl TheTrait<usize> for isize { }
41+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `the_fn` in implementation
42+ |
43+ = help: implement the missing item: `fn the_fn(&self) { todo!() }`
44+
45+ error[E0046]: not all trait items implemented, missing: `the_fn`
46+ --> $DIR/coherence-orphan.rs:14:1
47+ |
48+ LL | impl TheTrait<TheType> for isize { }
49+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `the_fn` in implementation
50+ |
51+ = help: implement the missing item: `fn the_fn(&self) { todo!() }`
52+
53+ error[E0046]: not all trait items implemented, missing: `the_fn`
54+ --> $DIR/coherence-orphan.rs:17:1
55+ |
56+ LL | impl TheTrait<isize> for TheType { }
57+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `the_fn` in implementation
58+ |
59+ = help: implement the missing item: `fn the_fn(&self) { todo!() }`
60+
61+ error: aborting due to 5 previous errors; 1 warning emitted
3862
39- For more information about this error, try `rustc --explain E0117`.
63+ Some errors have detailed explanations: E0046, E0117.
64+ For more information about an error, try `rustc --explain E0046`.
0 commit comments