fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
1.3 KiB35 linesraw
1error[E0119]: conflicting implementations of trait `Trait` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`:
2  --> $DIR/issue-33140.rs:9:1
3   |
4LL | impl Trait for dyn Send + Sync {
5   | ------------------------------ first implementation here
6...
7LL | impl Trait for dyn Sync + Send {
8   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)`
9
10error[E0119]: conflicting implementations of trait `Trait2` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`:
11  --> $DIR/issue-33140.rs:22:1
12   |
13LL | impl Trait2 for dyn Send + Sync {
14   | ------------------------------- first implementation here
15...
16LL | impl Trait2 for dyn Sync + Send + Sync {
17   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)`
18
19error[E0592]: duplicate definitions with name `abc`
20  --> $DIR/issue-33140.rs:29:5
21   |
22LL | /     fn abc() -> bool {
23LL | |         false
24LL | |     }
25   | |_____^ duplicate definitions for `abc`
26...
27LL | /     fn abc() -> bool {
28LL | |         true
29LL | |     }
30   | |_____- other definition for `abc`
31
32error: aborting due to 3 previous errors
33
34Some errors have detailed explanations: E0119, E0592.
35For more information about an error, try `rustc --explain E0119`.