mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
13 lines
146 B
Rust
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() {}
|