@@ -11,7 +11,7 @@ LL | impl TheTrait<usize> for isize { }
11
11
= note: define and implement a trait or new type instead
12
12
13
13
error[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
15
15
|
16
16
LL | impl !Send for Vec<isize> { }
17
17
| ^^^^^^^^^^^^^^^----------
@@ -22,7 +22,7 @@ LL | impl !Send for Vec<isize> { }
22
22
= note: define and implement a trait or new type instead
23
23
24
24
warning: 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
26
26
|
27
27
LL | impl !Send for Vec<isize> { }
28
28
| ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -34,6 +34,31 @@ note: try using the same sequence of generic parameters as the struct definition
34
34
--> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
35
35
= note: `#[warn(suspicious_auto_trait_impls)]` on by default
36
36
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
38
62
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