2025-02-13 09:53:08 +00:00
|
|
|
error[E0119]: conflicting implementations of trait `Foo` for type `(dyn Send + 'static)`
|
2019-04-22 16:35:37 +00:00
|
|
|
--> $DIR/lint-incoherent-auto-trait-objects.rs:5:1
|
2019-01-10 21:56:05 +00:00
|
|
|
|
|
|
|
|
LL | impl Foo for dyn Send {}
|
|
|
|
| --------------------- first implementation here
|
2022-06-08 18:07:59 +00:00
|
|
|
LL |
|
2019-01-10 21:56:05 +00:00
|
|
|
LL | impl Foo for dyn Send + Send {}
|
2022-11-10 04:21:11 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn Send + 'static)`
|
2019-01-10 21:56:05 +00:00
|
|
|
|
2025-02-13 09:53:08 +00:00
|
|
|
error[E0119]: conflicting implementations of trait `Foo` for type `(dyn Send + Sync + 'static)`
|
|
|
|
--> $DIR/lint-incoherent-auto-trait-objects.rs:10:1
|
2019-01-10 21:56:05 +00:00
|
|
|
|
|
|
|
|
LL | impl Foo for dyn Send + Sync {}
|
|
|
|
| ---------------------------- first implementation here
|
2022-06-08 18:07:59 +00:00
|
|
|
LL |
|
2019-01-10 21:56:05 +00:00
|
|
|
LL | impl Foo for dyn Sync + Send {}
|
2022-11-10 04:21:11 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn Send + Sync + 'static)`
|
2019-01-10 21:56:05 +00:00
|
|
|
|
2025-02-13 09:53:08 +00:00
|
|
|
error[E0119]: conflicting implementations of trait `Foo` for type `(dyn Send + Sync + 'static)`
|
|
|
|
--> $DIR/lint-incoherent-auto-trait-objects.rs:13:1
|
2019-01-10 21:56:05 +00:00
|
|
|
|
|
2025-02-13 09:53:08 +00:00
|
|
|
LL | impl Foo for dyn Send + Sync {}
|
2019-01-10 21:56:05 +00:00
|
|
|
| ---------------------------- first implementation here
|
|
|
|
...
|
|
|
|
LL | impl Foo for dyn Send + Sync + Send {}
|
2022-11-10 04:21:11 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn Send + Sync + 'static)`
|
2019-01-10 21:56:05 +00:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2025-02-13 09:53:08 +00:00
|
|
|
For more information about this error, try `rustc --explain E0119`.
|