14 lines
222 B
Rust
14 lines
222 B
Rust
|
#![feature(specialization)]
|
||
|
#![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() {}
|