]>
Commit | Line | Data |
---|---|---|
c34b1796 | 1 | #![feature(optin_builtin_traits)] |
223e47cc | 2 | |
c34b1796 | 3 | use std::marker::Copy; |
1a4d82fc | 4 | |
c34b1796 AL |
5 | enum TestE { |
6 | A | |
7 | } | |
223e47cc | 8 | |
c34b1796 AL |
9 | struct MyType; |
10 | ||
11 | struct NotSync; | |
12 | impl !Sync for NotSync {} | |
13 | ||
0731742a | 14 | impl Sized for TestE {} |
60c5eb7d | 15 | //~^ ERROR E0322 |
0731742a XL |
16 | |
17 | impl Sized for MyType {} | |
60c5eb7d | 18 | //~^ ERROR E0322 |
0731742a XL |
19 | |
20 | impl Sized for (MyType, MyType) {} | |
60c5eb7d XL |
21 | //~^ ERROR E0322 |
22 | //~| ERROR E0117 | |
0731742a XL |
23 | |
24 | impl Sized for &'static NotSync {} | |
60c5eb7d | 25 | //~^ ERROR E0322 |
0731742a XL |
26 | |
27 | impl Sized for [MyType] {} | |
60c5eb7d XL |
28 | //~^ ERROR E0322 |
29 | //~| ERROR E0117 | |
0731742a XL |
30 | |
31 | impl Sized for &'static [NotSync] {} | |
60c5eb7d XL |
32 | //~^ ERROR E0322 |
33 | //~| ERROR E0117 | |
c34b1796 AL |
34 | |
35 | fn main() { | |
36 | } |