@@ -10,30 +10,6 @@ LL | impl TheTrait<usize> for isize { }
10
10
|
11
11
= note: define and implement a trait or new type instead
12
12
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:20:1
15
- |
16
- LL | impl !Send for Vec<isize> { }
17
- | ^^^^^^^^^^^^^^^----------
18
- | | |
19
- | | `Vec` is not defined in the current crate
20
- | impl doesn't use only types from inside the current crate
21
- |
22
- = note: define and implement a trait or new type instead
23
-
24
- warning: cross-crate traits with a default impl, like `Send`, should not be specialized
25
- --> $DIR/coherence-orphan.rs:20:1
26
- |
27
- LL | impl !Send for Vec<isize> { }
28
- | ^^^^^^^^^^^^^^^^^^^^^^^^^
29
- |
30
- = warning: this will change its meaning in a future release!
31
- = note: for more information, see issue #93367 <https://github.com/rust-lang/rust/issues/93367>
32
- = note: `isize` is not a generic parameter
33
- note: try using the same sequence of generic parameters as the struct definition
34
- --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
35
- = note: `#[warn(suspicious_auto_trait_impls)]` on by default
36
-
37
13
error[E0046]: not all trait items implemented, missing: `the_fn`
38
14
--> $DIR/coherence-orphan.rs:10:1
39
15
|
@@ -58,6 +34,30 @@ LL | impl TheTrait<isize> for TheType { }
58
34
|
59
35
= help: implement the missing item: `fn the_fn(&self) { todo!() }`
60
36
37
+ error[E0117]: only traits defined in the current crate can be implemented for types defined outside of the crate
38
+ --> $DIR/coherence-orphan.rs:20:1
39
+ |
40
+ LL | impl !Send for Vec<isize> { }
41
+ | ^^^^^^^^^^^^^^^----------
42
+ | | |
43
+ | | `Vec` is not defined in the current crate
44
+ | impl doesn't use only types from inside the current crate
45
+ |
46
+ = note: define and implement a trait or new type instead
47
+
48
+ warning: cross-crate traits with a default impl, like `Send`, should not be specialized
49
+ --> $DIR/coherence-orphan.rs:20:1
50
+ |
51
+ LL | impl !Send for Vec<isize> { }
52
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
53
+ |
54
+ = warning: this will change its meaning in a future release!
55
+ = note: for more information, see issue #93367 <https://github.com/rust-lang/rust/issues/93367>
56
+ = note: `isize` is not a generic parameter
57
+ note: try using the same sequence of generic parameters as the struct definition
58
+ --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
59
+ = note: `#[warn(suspicious_auto_trait_impls)]` on by default
60
+
61
61
error: aborting due to 5 previous errors; 1 warning emitted
62
62
63
63
Some errors have detailed explanations: E0046, E0117.
0 commit comments