]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-incoherent-auto-trait-objects.rs
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[rust.git] / src / test / 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() {}