]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/object/issue-33140-traitobject-crate.stderr
Merge commit 'c4416f20dcaec5d93077f72470e83e150fb923b1' into sync-rustfmt
[rust.git] / src / test / ui / traits / object / issue-33140-traitobject-crate.stderr
1 warning: conflicting implementations of trait `Trait` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`: (E0119)
2   --> $DIR/issue-33140-traitobject-crate.rs:86:1
3    |
4 LL | unsafe impl Trait for dyn (::std::marker::Send) + Sync { }
5    | ------------------------------------------------------ first implementation here
6 LL | unsafe impl Trait for dyn (::std::marker::Send) + Send + Sync { }
7    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)`
8    |
9 note: the lint level is defined here
10   --> $DIR/issue-33140-traitobject-crate.rs:3:9
11    |
12 LL | #![warn(order_dependent_trait_objects)]
13    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
15    = note: for more information, see issue #56484 <https://github.com/rust-lang/rust/issues/56484>
16
17 warning: conflicting implementations of trait `Trait` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`: (E0119)
18   --> $DIR/issue-33140-traitobject-crate.rs:89:1
19    |
20 LL | unsafe impl Trait for dyn (::std::marker::Send) + Send + Sync { }
21    | ------------------------------------------------------------- first implementation here
22 ...
23 LL | unsafe impl Trait for dyn (::std::marker::Sync) + Send { }
24    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)`
25    |
26    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
27    = note: for more information, see issue #56484 <https://github.com/rust-lang/rust/issues/56484>
28
29 warning: conflicting implementations of trait `Trait` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`: (E0119)
30   --> $DIR/issue-33140-traitobject-crate.rs:93:1
31    |
32 LL | unsafe impl Trait for dyn (::std::marker::Sync) + Send { }
33    | ------------------------------------------------------ first implementation here
34 ...
35 LL | unsafe impl Trait for dyn (::std::marker::Sync) + Send + Sync { }
36    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)`
37    |
38    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
39    = note: for more information, see issue #56484 <https://github.com/rust-lang/rust/issues/56484>
40
41 warning: 3 warnings emitted
42