]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/item-free-static-no-body-semantic-fail.rs
Add 'compiler/rustc_codegen_cranelift/' from commit '793d26047f994e23415f8f6bb5686ff2...
[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