You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/ui/coherence/coherence-impl-trait-for-marker-trait-negative.stderr
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
16
16
LL | impl !Send for dyn Marker2 {}
17
17
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ impl doesn't use types inside crate
18
18
|
19
-
= note: the impl does not reference only types defined in this crate
19
+
= note: `(dyn Marker2 + 'static)` is not defined in the current create
20
20
= note: define and implement a trait or new type instead
21
21
22
22
error[E0321]: cross-crate traits with a default impl, like `std::marker::Send`, can only be implemented for a struct/enum type, not `(dyn Object + 'static)`
Copy file name to clipboardExpand all lines: src/test/ui/coherence/coherence-impl-trait-for-marker-trait-positive.stderr
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
16
16
LL | unsafe impl Send for dyn Marker2 {}
17
17
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl doesn't use types inside crate
18
18
|
19
-
= note: the impl does not reference only types defined in this crate
19
+
= note: `(dyn Marker2 + 'static)` is not defined in the current create
20
20
= note: define and implement a trait or new type instead
21
21
22
22
error[E0321]: cross-crate traits with a default impl, like `std::marker::Send`, can only be implemented for a struct/enum type, not `(dyn Object + 'static)`
0 commit comments