rust/tests/ui/specialization/specialization-overlap-nega...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
297 B
Rust
Raw Normal View History

#![feature(negative_impls)]
2020-05-17 16:22:48 +08:00
#![feature(specialization)] //~ WARN the feature `specialization` is incomplete
trait MyTrait {}
struct TestType<T>(::std::marker::PhantomData<T>);
unsafe impl<T: Clone> Send for TestType<T> {}
2020-04-22 20:18:22 +08:00
impl<T: MyTrait> !Send for TestType<T> {} //~ ERROR E0751
fn main() {}