mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
14 lines
274 B
Rust
14 lines
274 B
Rust
#![feature(specialization)] //~ WARN the feature `specialization` is incomplete
|
|
#![feature(negative_impls)]
|
|
|
|
// Test a negative impl that "specializes" another negative impl.
|
|
//
|
|
// run-pass
|
|
|
|
trait MyTrait {}
|
|
|
|
impl<T> !MyTrait for T {}
|
|
impl !MyTrait for u32 {}
|
|
|
|
fn main() {}
|