mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-15 10:29:16 +00:00
18 lines
270 B
Rust
18 lines
270 B
Rust
// A simple test that we are able to create negative impls, when the
|
|
// feature gate is given.
|
|
//
|
|
//@ run-pass
|
|
|
|
#![feature(negative_impls)]
|
|
#![allow(dead_code)]
|
|
|
|
struct TestType;
|
|
|
|
trait TestTrait {
|
|
fn dummy(&self) {}
|
|
}
|
|
|
|
impl !TestTrait for TestType {}
|
|
|
|
fn main() {}
|