]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/coherence/coherence-impl-trait-for-marker-trait-positive.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / coherence / coherence-impl-trait-for-marker-trait-positive.stderr
index 141ab7771f325501a202316aa121f3451684d36d..b80429794f92cb2b76eddef9a4657600934ad36c 100644 (file)
@@ -21,13 +21,13 @@ LL | unsafe impl Send for dyn Marker2 {}
    |
    = note: define and implement a trait or new type instead
 
-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)`
+error[E0321]: cross-crate traits with a default impl, like `Send`, can only be implemented for a struct/enum type, not `(dyn Object + 'static)`
   --> $DIR/coherence-impl-trait-for-marker-trait-positive.rs:27:1
    |
 LL | unsafe impl Send for dyn Object {}
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't implement cross-crate trait with a default impl for non-struct/enum type
 
-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 + Marker2 + 'static)`
+error[E0321]: cross-crate traits with a default impl, like `Send`, can only be implemented for a struct/enum type, not `(dyn Object + Marker2 + 'static)`
   --> $DIR/coherence-impl-trait-for-marker-trait-positive.rs:28:1
    |
 LL | unsafe impl Send for dyn Object + Marker2 {}