2018-12-03 15:27:25 -06:00
|
|
|
error: conflicting implementations of trait `Trait` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`: (E0119)
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-33140.rs:11: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 {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)`
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-33140.rs:1:9
|
2018-12-03 15:27:25 -06:00
|
|
|
|
|
|
|
|
LL | #![deny(order_dependent_trait_objects)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
2018-12-03 17:00:21 -06:00
|
|
|
= note: for more information, see issue #56484 <https://github.com/rust-lang/rust/issues/56484>
|
2018-12-03 15:27:25 -06:00
|
|
|
|
|
|
|
error: conflicting implementations of trait `Trait2` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`: (E0119)
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-33140.rs:25: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 {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)`
|
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
2018-12-03 17:00:21 -06:00
|
|
|
= note: for more information, see issue #56484 <https://github.com/rust-lang/rust/issues/56484>
|
2018-12-03 15:27:25 -06:00
|
|
|
|
|
|
|
error: duplicate definitions with name `abc` (E0592)
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-33140.rs:33:5
|
2018-12-03 15:27:25 -06:00
|
|
|
|
|
|
|
|
LL | / fn abc() -> bool { //~ ERROR duplicate definitions with name `abc`
|
|
|
|
LL | | //~| hard error
|
|
|
|
LL | | false
|
|
|
|
LL | | }
|
|
|
|
| |_____^ duplicate definitions for `abc`
|
|
|
|
...
|
|
|
|
LL | / fn abc() -> bool {
|
|
|
|
LL | | true
|
|
|
|
LL | | }
|
|
|
|
| |_____- other definition for `abc`
|
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
2018-12-03 17:00:21 -06:00
|
|
|
= note: for more information, see issue #56484 <https://github.com/rust-lang/rust/issues/56484>
|
2018-12-03 15:27:25 -06:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|