]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-33140-traitobject-crate.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-33140-traitobject-crate.stderr
CommitLineData
0731742a
XL
1warning: conflicting implementations of trait `Trait` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`: (E0119)
2 --> $DIR/issue-33140-traitobject-crate.rs:85:1
3 |
dc9dc135
XL
4LL | unsafe impl Trait for dyn (::std::marker::Send) + Sync { }
5 | ------------------------------------------------------ first implementation here
6LL | unsafe impl Trait for dyn (::std::marker::Send) + Send + Sync { }
7 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)`
0731742a 8 |
74b04a01 9note: the lint level is defined here
0731742a
XL
10 --> $DIR/issue-33140-traitobject-crate.rs:3:9
11 |
12LL | #![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
17warning: conflicting implementations of trait `Trait` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`: (E0119)
60c5eb7d 18 --> $DIR/issue-33140-traitobject-crate.rs:88:1
0731742a 19 |
dc9dc135
XL
20LL | unsafe impl Trait for dyn (::std::marker::Send) + Send + Sync { }
21 | ------------------------------------------------------------- first implementation here
60c5eb7d 22...
dc9dc135
XL
23LL | unsafe impl Trait for dyn (::std::marker::Sync) + Send { }
24 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)`
0731742a
XL
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
29warning: conflicting implementations of trait `Trait` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`: (E0119)
60c5eb7d 30 --> $DIR/issue-33140-traitobject-crate.rs:92:1
0731742a 31 |
dc9dc135
XL
32LL | unsafe impl Trait for dyn (::std::marker::Sync) + Send { }
33 | ------------------------------------------------------ first implementation here
60c5eb7d 34...
dc9dc135
XL
35LL | unsafe impl Trait for dyn (::std::marker::Sync) + Send + Sync { }
36 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)`
0731742a
XL
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
ba9703b0
XL
41warning: 3 warnings emitted
42