2021-04-07 01:16:11 +00:00
|
|
|
error[E0119]: conflicting implementations of trait `Trait1` for type `(dyn std::marker::Send + 'static)`
|
2020-01-08 19:10:59 +00:00
|
|
|
--> $DIR/issue-33140-hack-boundaries.rs:18:1
|
2019-01-03 21:46:46 +00:00
|
|
|
|
|
|
|
|
LL | impl Trait1 for dyn Send {}
|
|
|
|
| ------------------------ first implementation here
|
|
|
|
LL | impl Trait1 for dyn Send {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + 'static)`
|
|
|
|
|
2020-04-22 12:18:22 +00:00
|
|
|
error[E0751]: found both positive and negative implementation of trait `Trait2` for type `(dyn std::marker::Send + 'static)`:
|
2020-01-08 19:10:59 +00:00
|
|
|
--> $DIR/issue-33140-hack-boundaries.rs:25:1
|
2019-01-03 21:46:46 +00:00
|
|
|
|
|
|
|
|
LL | impl Trait2 for dyn Send {}
|
2020-01-08 19:10:59 +00:00
|
|
|
| ------------------------ positive implementation here
|
2019-01-03 21:46:46 +00:00
|
|
|
LL | impl !Trait2 for dyn Send {}
|
2020-01-08 19:10:59 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ negative implementation here
|
2019-01-03 21:46:46 +00:00
|
|
|
|
2021-04-07 01:16:11 +00:00
|
|
|
error[E0119]: conflicting implementations of trait `Trait3<(dyn std::marker::Sync + 'static)>` for type `(dyn std::marker::Send + 'static)`
|
2020-01-08 19:10:59 +00:00
|
|
|
--> $DIR/issue-33140-hack-boundaries.rs:32:1
|
2019-01-03 21:46:46 +00:00
|
|
|
|
|
|
|
|
LL | impl Trait3<dyn Sync> for dyn Send {}
|
|
|
|
| ---------------------------------- first implementation here
|
|
|
|
LL | impl Trait3<dyn Sync> for dyn Send {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + 'static)`
|
|
|
|
|
2021-04-07 01:16:11 +00:00
|
|
|
error[E0119]: conflicting implementations of trait `Trait4a` for type `(dyn std::marker::Send + 'static)`
|
2020-01-08 19:10:59 +00:00
|
|
|
--> $DIR/issue-33140-hack-boundaries.rs:39:1
|
2019-01-03 21:46:46 +00:00
|
|
|
|
|
|
|
|
LL | impl<T: ?Sized> Trait4a for T {}
|
|
|
|
| ----------------------------- first implementation here
|
|
|
|
LL | impl Trait4a for dyn Send {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + 'static)`
|
|
|
|
|
2021-04-07 01:16:11 +00:00
|
|
|
error[E0119]: conflicting implementations of trait `Trait4b` for type `()`
|
2020-01-08 19:10:59 +00:00
|
|
|
--> $DIR/issue-33140-hack-boundaries.rs:46:1
|
2019-01-03 21:46:46 +00:00
|
|
|
|
|
|
|
|
LL | impl Trait4b for () {}
|
|
|
|
| ------------------- first implementation here
|
|
|
|
LL | impl Trait4b for () {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ conflicting implementation for `()`
|
|
|
|
|
2021-04-07 01:16:11 +00:00
|
|
|
error[E0119]: conflicting implementations of trait `Trait4c` for type `(dyn Trait1 + std::marker::Send + 'static)`
|
2020-01-08 19:10:59 +00:00
|
|
|
--> $DIR/issue-33140-hack-boundaries.rs:53:1
|
2019-01-03 21:46:46 +00:00
|
|
|
|
|
|
|
|
LL | impl Trait4c for dyn Trait1 + Send {}
|
|
|
|
| ---------------------------------- first implementation here
|
|
|
|
LL | impl Trait4c for dyn Trait1 + Send {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn Trait1 + std::marker::Send + 'static)`
|
|
|
|
|
2021-04-07 01:16:11 +00:00
|
|
|
error[E0119]: conflicting implementations of trait `Trait4d` for type `dyn std::marker::Send`
|
2020-01-08 19:10:59 +00:00
|
|
|
--> $DIR/issue-33140-hack-boundaries.rs:60:1
|
2019-01-03 21:46:46 +00:00
|
|
|
|
|
|
|
|
LL | impl<'a> Trait4d for dyn Send + 'a {}
|
|
|
|
| ---------------------------------- first implementation here
|
|
|
|
LL | impl<'a> Trait4d for dyn Send + 'a {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `dyn std::marker::Send`
|
|
|
|
|
2021-04-07 01:16:11 +00:00
|
|
|
error[E0119]: conflicting implementations of trait `Trait5` for type `(dyn std::marker::Send + 'static)`
|
2020-01-08 19:10:59 +00:00
|
|
|
--> $DIR/issue-33140-hack-boundaries.rs:67:1
|
2019-01-03 21:46:46 +00:00
|
|
|
|
|
|
|
|
LL | impl Trait5 for dyn Send {}
|
|
|
|
| ------------------------ first implementation here
|
|
|
|
LL | impl Trait5 for dyn Send where u32: Copy {}
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + 'static)`
|
2019-01-03 21:46:46 +00:00
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|
2020-04-22 12:18:22 +00:00
|
|
|
Some errors have detailed explanations: E0119, E0751.
|
2020-01-08 19:10:59 +00:00
|
|
|
For more information about an error, try `rustc --explain E0119`.
|