mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
12 lines
380 B
Rust
12 lines
380 B
Rust
// Semantically, a free `static` item cannot omit its body.
|
|
|
|
fn main() {}
|
|
|
|
static A: u8; //~ ERROR free static item without body
|
|
static B; //~ ERROR free static item without body
|
|
//~^ ERROR missing type for `static` item
|
|
|
|
static mut C: u8; //~ ERROR free static item without body
|
|
static mut D; //~ ERROR free static item without body
|
|
//~^ ERROR missing type for `static mut` item
|