add test for negative specializes negative

This commit is contained in:
Niko Matsakis 2020-03-13 14:43:34 -04:00
parent f5c09ed344
commit b9e09d8f65

View file

@ -0,0 +1,13 @@
#![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() {}