rust/tests/ui/lint/lint-incoherent-auto-trait-objects.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
309 B
Rust
Raw Normal View History

trait Foo {}
impl Foo for dyn Send {}
impl Foo for dyn Send + Send {}
//~^ ERROR conflicting implementations
impl Foo for dyn Send + Sync {}
impl Foo for dyn Sync + Send {}
//~^ ERROR conflicting implementations
impl Foo for dyn Send + Sync + Send {}
//~^ ERROR conflicting implementations
fn main() {}