2021-04-06 20:16:11 -05:00
|
|
|
error[E0119]: conflicting implementations of trait `Trait` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`
|
2019-01-03 15:46:46 -06:00
|
|
|
--> $DIR/issue-33140.rs:9:1
|
2018-12-03 15:27:25 -06:00
|
|
|
|
|
|
|
|
LL | impl Trait for dyn Send + Sync {
|
|
|
|
| ------------------------------ first implementation here
|
|
|
|
...
|
|
|
|
LL | impl Trait for dyn Sync + Send {
|
2019-01-04 07:09:09 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)`
|
2018-12-03 15:27:25 -06:00
|
|
|
|
2021-04-06 20:16:11 -05:00
|
|
|
error[E0119]: conflicting implementations of trait `Trait2` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`
|
2019-01-03 15:46:46 -06:00
|
|
|
--> $DIR/issue-33140.rs:22:1
|
2018-12-03 15:27:25 -06:00
|
|
|
|
|
|
|
|
LL | impl Trait2 for dyn Send + Sync {
|
|
|
|
| ------------------------------- first implementation here
|
|
|
|
...
|
|
|
|
LL | impl Trait2 for dyn Sync + Send + Sync {
|
2019-01-04 07:09:09 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)`
|
2018-12-03 15:27:25 -06:00
|
|
|
|
2019-01-03 15:46:46 -06:00
|
|
|
error[E0592]: duplicate definitions with name `abc`
|
|
|
|
--> $DIR/issue-33140.rs:29:5
|
2018-12-03 15:27:25 -06:00
|
|
|
|
|
2020-08-12 16:02:14 -05:00
|
|
|
LL | fn abc() -> bool {
|
|
|
|
| ^^^^^^^^^^^^^^^^ duplicate definitions for `abc`
|
2018-12-03 15:27:25 -06:00
|
|
|
...
|
2020-08-12 16:02:14 -05:00
|
|
|
LL | fn abc() -> bool {
|
|
|
|
| ---------------- other definition for `abc`
|
2018-12-03 15:27:25 -06:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2019-06-13 20:54:27 -05:00
|
|
|
Some errors have detailed explanations: E0119, E0592.
|
|
|
|
For more information about an error, try `rustc --explain E0119`.
|