]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-incoherent-auto-trait-objects.stderr
Rollup merge of #103439 - Nilstrieb:help-me-with-my-macro, r=estebank
[rust.git] / src / test / ui / lint / lint-incoherent-auto-trait-objects.stderr
1 error: conflicting implementations of trait `Foo` for type `(dyn Send + 'static)`: (E0119)
2   --> $DIR/lint-incoherent-auto-trait-objects.rs:5: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 Send + 'static)`
9    |
10    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
11    = note: for more information, see issue #56484 <https://github.com/rust-lang/rust/issues/56484>
12    = note: `#[deny(order_dependent_trait_objects)]` on by default
13
14 error: conflicting implementations of trait `Foo` for type `(dyn Send + Sync + 'static)`: (E0119)
15   --> $DIR/lint-incoherent-auto-trait-objects.rs:11: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 Send + 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 Send + Sync + 'static)`: (E0119)
27   --> $DIR/lint-incoherent-auto-trait-objects.rs:15: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 Send + 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
40 Future incompatibility report: Future breakage diagnostic:
41 error: conflicting implementations of trait `Foo` for type `(dyn Send + 'static)`: (E0119)
42   --> $DIR/lint-incoherent-auto-trait-objects.rs:5:1
43    |
44 LL | impl Foo for dyn Send {}
45    | --------------------- first implementation here
46 LL |
47 LL | impl Foo for dyn Send + Send {}
48    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn Send + 'static)`
49    |
50    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
51    = note: for more information, see issue #56484 <https://github.com/rust-lang/rust/issues/56484>
52    = note: `#[deny(order_dependent_trait_objects)]` on by default
53
54 Future breakage diagnostic:
55 error: conflicting implementations of trait `Foo` for type `(dyn Send + Sync + 'static)`: (E0119)
56   --> $DIR/lint-incoherent-auto-trait-objects.rs:11:1
57    |
58 LL | impl Foo for dyn Send + Sync {}
59    | ---------------------------- first implementation here
60 LL |
61 LL | impl Foo for dyn Sync + Send {}
62    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn Send + Sync + 'static)`
63    |
64    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
65    = note: for more information, see issue #56484 <https://github.com/rust-lang/rust/issues/56484>
66    = note: `#[deny(order_dependent_trait_objects)]` on by default
67
68 Future breakage diagnostic:
69 error: conflicting implementations of trait `Foo` for type `(dyn Send + Sync + 'static)`: (E0119)
70   --> $DIR/lint-incoherent-auto-trait-objects.rs:15:1
71    |
72 LL | impl Foo for dyn Sync + Send {}
73    | ---------------------------- first implementation here
74 ...
75 LL | impl Foo for dyn Send + Sync + Send {}
76    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn Send + Sync + 'static)`
77    |
78    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
79    = note: for more information, see issue #56484 <https://github.com/rust-lang/rust/issues/56484>
80    = note: `#[deny(order_dependent_trait_objects)]` on by default
81