]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/syntax-polarity.rs
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / traits / syntax-polarity.rs
1 // run-pass
2 #![allow(dead_code)]
3 // pretty-expanded FIXME #23616
4
5 #![feature(negative_impls)]
6
7 struct TestType;
8
9 impl TestType {}
10
11 trait TestTrait {}
12
13 impl !Send for TestType {}
14
15 struct TestType2<T>(T);
16
17 impl<T> TestType2<T> {}
18
19 impl<T> !Send for TestType2<T> {}
20
21 fn main() {}