rust/tests/ui/traits/negative-impls/eager-mono.rs

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

13 lines
148 B
Rust
Raw Normal View History

//@ build-pass
//@ compile-flags:-C link-dead-code=y
#![feature(negative_impls)]
trait Foo {
fn foo() {}
}
impl !Foo for () {}
fn main() {}