rust/tests/ui/traits/negative-impls/eager-mono.rs
2023-01-11 09:32:08 +00:00

13 lines
146 B
Rust

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