|
| 1 | +error: conflicting implementations of trait `Foo` for type `(dyn std::marker::Send + 'static)`: (E0119) |
| 2 | + --> $DIR/lint-incoherent-auto-trait-objects.rs:7:1 |
| 3 | + | |
| 4 | +LL | impl Foo for dyn Send {} |
| 5 | + | --------------------- first implementation here |
| 6 | +LL | |
| 7 | +LL | impl Foo for dyn Send + Send {} |
| 8 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + 'static)` |
| 9 | + | |
| 10 | + = note: #[deny(order_dependent_trait_objects)] on by default |
| 11 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 12 | + = note: for more information, see issue #56484 <https://github.com/rust-lang/rust/issues/56484> |
| 13 | + |
| 14 | +error: conflicting implementations of trait `Foo` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`: (E0119) |
| 15 | + --> $DIR/lint-incoherent-auto-trait-objects.rs:13:1 |
| 16 | + | |
| 17 | +LL | impl Foo for dyn Send + Sync {} |
| 18 | + | ---------------------------- first implementation here |
| 19 | +LL | |
| 20 | +LL | impl Foo for dyn Sync + Send {} |
| 21 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)` |
| 22 | + | |
| 23 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 24 | + = note: for more information, see issue #56484 <https://github.com/rust-lang/rust/issues/56484> |
| 25 | + |
| 26 | +error: conflicting implementations of trait `Foo` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`: (E0119) |
| 27 | + --> $DIR/lint-incoherent-auto-trait-objects.rs:17:1 |
| 28 | + | |
| 29 | +LL | impl Foo for dyn Sync + Send {} |
| 30 | + | ---------------------------- first implementation here |
| 31 | +... |
| 32 | +LL | impl Foo for dyn Send + Sync + Send {} |
| 33 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)` |
| 34 | + | |
| 35 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 36 | + = note: for more information, see issue #56484 <https://github.com/rust-lang/rust/issues/56484> |
| 37 | + |
| 38 | +error: aborting due to 3 previous errors |
| 39 | + |
0 commit comments