rust/tests/ui/traits/syntax-polarity.rs

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

22 lines
279 B
Rust
Raw Normal View History

//@ run-pass
#![allow(dead_code)]
//@ pretty-expanded FIXME #23616
#![feature(negative_impls)]
struct TestType;
impl TestType {}
2015-04-18 05:12:20 +00:00
trait TestTrait {}
2015-01-11 12:14:39 +00:00
impl !Send for TestType {}
struct TestType2<T>(T);
impl<T> TestType2<T> {}
2015-01-11 12:14:39 +00:00
impl<T> !Send for TestType2<T> {}
fn main() {}