1 // Syntactically, we do allow e.g., `static X: u8 = 0;` as an associated item.
7 static IA: u8 = 0; //~ ERROR associated `static` items are not allowed
8 static IB: u8; //~ ERROR associated `static` items are not allowed
9 default static IC: u8 = 0; //~ ERROR associated `static` items are not allowed
10 //~^ ERROR a static item cannot be `default`
11 pub(crate) default static ID: u8; //~ ERROR associated `static` items are not allowed
12 //~^ ERROR a static item cannot be `default`
17 static TA: u8 = 0; //~ ERROR associated `static` items are not allowed
18 static TB: u8; //~ ERROR associated `static` items are not allowed
19 default static TC: u8 = 0; //~ ERROR associated `static` items are not allowed
20 //~^ ERROR a static item cannot be `default`
21 pub(crate) default static TD: u8; //~ ERROR associated `static` items are not allowed
22 //~^ ERROR a static item cannot be `default`
27 static TA: u8 = 0; //~ ERROR associated `static` items are not allowed
28 static TB: u8; //~ ERROR associated `static` items are not allowed
29 default static TC: u8 = 0; //~ ERROR associated `static` items are not allowed
30 //~^ ERROR a static item cannot be `default`
31 pub default static TD: u8; //~ ERROR associated `static` items are not allowed
32 //~^ ERROR a static item cannot be `default`