fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
2.1 KiB39 linesraw
1error: conflicting implementations of trait `Foo` for type `(dyn std::marker::Send + 'static)`: (E0119)
2  --> $DIR/lint-incoherent-auto-trait-objects.rs:5:1
3   |
4LL | impl Foo for dyn Send {}
5   | --------------------- first implementation here
6LL | 
7LL | 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
14error: conflicting implementations of trait `Foo` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`: (E0119)
15  --> $DIR/lint-incoherent-auto-trait-objects.rs:11:1
16   |
17LL | impl Foo for dyn Send + Sync {}
18   | ---------------------------- first implementation here
19LL | 
20LL | 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
26error: conflicting implementations of trait `Foo` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`: (E0119)
27  --> $DIR/lint-incoherent-auto-trait-objects.rs:15:1
28   |
29LL | impl Foo for dyn Sync + Send {}
30   | ---------------------------- first implementation here
31...
32LL | 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
38error: aborting due to 3 previous errors
39