]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/item-free-static-no-body-semantic-fail.rs
Rollup merge of #91699 - jsha:webkit-appearance-search-input, r=GuillaumeGomez
[rust.git] / src / test / ui / parser / item-free-static-no-body-semantic-fail.rs
1 // Semantically, a free `static` item cannot omit its body.
2
3 fn main() {}
4
5 static A: u8; //~ ERROR free static item without body
6 static B; //~ ERROR free static item without body
7 //~^ ERROR missing type for `static` item
8
9 static mut C: u8; //~ ERROR free static item without body
10 static mut D; //~ ERROR free static item without body
11 //~^ ERROR missing type for `static mut` item