add test for negative specializes negative
This commit is contained in:
parent
f5c09ed344
commit
b9e09d8f65
1 changed files with 13 additions and 0 deletions
|
|
@ -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() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue