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

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

21 lines
246 B
Rust
Raw Permalink Normal View History

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