2019-01-04 07:09:09 -06: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
|
|
|
|
2019-01-04 07:09:09 -06: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
|
|
|
|
|
|
|
|
LL | / fn abc() -> bool { //~ ERROR duplicate definitions with name `abc`
|
|
|
|
LL | | false
|
|
|
|
LL | | }
|
|
|
|
| |_____^ duplicate definitions for `abc`
|
|
|
|
...
|
|
|
|
LL | / fn abc() -> bool {
|
|
|
|
LL | | true
|
|
|
|
LL | | }
|
|
|
|
| |_____- other definition for `abc`
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2019-01-03 15:46:46 -06:00
|
|
|
Some errors occurred: E0119, E0592.
|
|
|
|
For more information about an error, try `rustc --explain E0119`.
|