1- warning: conflicting implementations of trait `Trait` for type `(dyn std::marker::Sync + std::marker::Send + 'static)`: (E0119)
1+ warning: conflicting implementations of trait `Trait` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`: (E0119)
22 --> $DIR/issue-33140-traitobject-crate.rs:85:1
33 |
44LL | unsafe impl Trait for ::std::marker::Send + Sync { }
55 | ------------------------------------------------ first implementation here
66LL | unsafe impl Trait for ::std::marker::Send + Send + Sync { }
7- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Sync + std::marker::Send + 'static)`
7+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)`
88 |
99note: lint level defined here
1010 --> $DIR/issue-33140-traitobject-crate.rs:3:9
@@ -14,25 +14,25 @@ LL | #![warn(order_dependent_trait_objects)]
1414 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
1515 = note: for more information, see issue #56484 <https://github.com/rust-lang/rust/issues/56484>
1616
17- warning: conflicting implementations of trait `Trait` for type `(dyn std::marker::Sync + std::marker::Send + 'static)`: (E0119)
17+ warning: conflicting implementations of trait `Trait` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`: (E0119)
1818 --> $DIR/issue-33140-traitobject-crate.rs:86:1
1919 |
2020LL | unsafe impl Trait for ::std::marker::Send + Send + Sync { }
2121 | ------------------------------------------------------- first implementation here
2222LL | unsafe impl Trait for ::std::marker::Sync + Send { }
23- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Sync + std::marker::Send + 'static)`
23+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)`
2424 |
2525 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
2626 = note: for more information, see issue #56484 <https://github.com/rust-lang/rust/issues/56484>
2727
28- warning: conflicting implementations of trait `Trait` for type `(dyn std::marker::Sync + std::marker::Send + 'static)`: (E0119)
28+ warning: conflicting implementations of trait `Trait` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`: (E0119)
2929 --> $DIR/issue-33140-traitobject-crate.rs:88:1
3030 |
3131LL | unsafe impl Trait for ::std::marker::Sync + Send { }
3232 | ------------------------------------------------ first implementation here
3333LL | unsafe impl Trait for ::std::marker::Sync + Sync { }
3434LL | unsafe impl Trait for ::std::marker::Sync + Send + Sync { }
35- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Sync + std::marker::Send + 'static)`
35+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)`
3636 |
3737 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
3838 = note: for more information, see issue #56484 <https://github.com/rust-lang/rust/issues/56484>
0 commit comments