2020-05-17 03:22:48 -05:00
|
|
|
#![feature(specialization)] //~ WARN the feature `specialization` is incomplete
|
2020-03-13 13:43:34 -05:00
|
|
|
#![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() {}
|