mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
20 lines
357 B
Rust
20 lines
357 B
Rust
|
trait Foo {}
|
||
|
|
||
|
impl Foo for dyn Send {}
|
||
|
|
||
|
impl Foo for dyn Send + Send {}
|
||
|
//~^ ERROR conflicting implementations
|
||
|
//~| hard error
|
||
|
|
||
|
impl Foo for dyn Send + Sync {}
|
||
|
|
||
|
impl Foo for dyn Sync + Send {}
|
||
|
//~^ ERROR conflicting implementations
|
||
|
//~| hard error
|
||
|
|
||
|
impl Foo for dyn Send + Sync + Send {}
|
||
|
//~^ ERROR conflicting implementations
|
||
|
//~| hard error
|
||
|
|
||
|
fn main() {}
|