rust/src/test/ui/traits/syntax-trait-polarity.rs

22 lines
283 B
Rust
Raw Normal View History

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