]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/lint-incoherent-auto-trait-objects.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / ui / lint / lint-incoherent-auto-trait-objects.rs
1 trait Foo {}
2
3 impl Foo for dyn Send {}
4
5 impl Foo for dyn Send + Send {}
6 //~^ ERROR conflicting implementations
7 //~| hard error
8
9 impl Foo for dyn Send + Sync {}
10
11 impl Foo for dyn Sync + Send {}
12 //~^ ERROR conflicting implementations
13 //~| hard error
14
15 impl Foo for dyn Send + Sync + Send {}
16 //~^ ERROR conflicting implementations
17 //~| hard error
18
19 fn main() {}