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