fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
3.8 KiB85 linesraw
1error[E0119]: conflicting implementations of trait `Trait1` for type `(dyn Send + 'static)`
2  --> $DIR/issue-33140-hack-boundaries.rs:18:1
3   |
4LL | impl Trait1 for dyn Send {}
5   | ------------------------ first implementation here
6LL | impl Trait1 for dyn Send {}
7   | ^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn Send + 'static)`
8
9error[E0751]: found both positive and negative implementation of trait `Trait2` for type `(dyn Send + 'static)`:
10  --> $DIR/issue-33140-hack-boundaries.rs:25:1
11   |
12LL | impl Trait2 for dyn Send {}
13   | ------------------------ positive implementation here
14LL | impl !Trait2 for dyn Send {}
15   | ^^^^^^^^^^^^^^^^^^^^^^^^^ negative implementation here
16
17error[E0119]: conflicting implementations of trait `Trait3<(dyn Sync + 'static)>` for type `(dyn Send + 'static)`
18  --> $DIR/issue-33140-hack-boundaries.rs:32:1
19   |
20LL | impl Trait3<dyn Sync> for dyn Send {}
21   | ---------------------------------- first implementation here
22LL | impl Trait3<dyn Sync> for dyn Send {}
23   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn Send + 'static)`
24
25error[E0119]: conflicting implementations of trait `Trait4a` for type `(dyn Send + 'static)`
26  --> $DIR/issue-33140-hack-boundaries.rs:39:1
27   |
28LL | impl<T: ?Sized> Trait4a for T {}
29   | ----------------------------- first implementation here
30LL | impl Trait4a for dyn Send {}
31   | ^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn Send + 'static)`
32
33error[E0119]: conflicting implementations of trait `Trait4b` for type `()`
34  --> $DIR/issue-33140-hack-boundaries.rs:46:1
35   |
36LL | impl Trait4b for () {}
37   | ------------------- first implementation here
38LL | impl Trait4b for () {}
39   | ^^^^^^^^^^^^^^^^^^^ conflicting implementation for `()`
40
41error[E0119]: conflicting implementations of trait `Trait4c` for type `(dyn Trait1 + Send + 'static)`
42  --> $DIR/issue-33140-hack-boundaries.rs:53:1
43   |
44LL | impl Trait4c for dyn Trait1 + Send {}
45   | ---------------------------------- first implementation here
46LL | impl Trait4c for dyn Trait1 + Send {}
47   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn Trait1 + Send + 'static)`
48
49error[E0119]: conflicting implementations of trait `Trait4d` for type `dyn Send`
50  --> $DIR/issue-33140-hack-boundaries.rs:60:1
51   |
52LL | impl<'a> Trait4d for dyn Send + 'a {}
53   | ---------------------------------- first implementation here
54LL | impl<'a> Trait4d for dyn Send + 'a {}
55   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `dyn Send`
56
57error[E0119]: conflicting implementations of trait `Trait5` for type `(dyn Send + 'static)`
58  --> $DIR/issue-33140-hack-boundaries.rs:67:1
59   |
60LL | impl Trait5 for dyn Send {}
61   | ------------------------ first implementation here
62LL | impl Trait5 for dyn Send where u32: Copy {}
63   | ^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn Send + 'static)`
64
65error: aborting due to 8 previous errors
66
67Some errors have detailed explanations: E0119, E0751.
68For more information about an error, try `rustc --explain E0119`.
69Future incompatibility report: Future breakage diagnostic:
70warning: conflicting implementations of trait `Trait0` for type `(dyn Send + 'static)`: (E0119)
71  --> $DIR/issue-33140-hack-boundaries.rs:10:1
72   |
73LL | impl Trait0 for dyn Send {}
74   | ------------------------ first implementation here
75LL | impl Trait0 for dyn Send {}
76   | ^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn Send + '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>
80note: the lint level is defined here
81  --> $DIR/issue-33140-hack-boundaries.rs:2:10
82   |
83LL | #![allow(order_dependent_trait_objects)]
84   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
85