summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/negative-impls/eager-mono.rs
blob: ce770376c0b2fe1cf641154d28ecb3a0f9ca98a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// build-pass
// compile-flags:-C link-dead-code=y

#![feature(negative_impls)]

trait Foo {
    fn foo() {}
}

impl !Foo for () {}

fn main() {}