rust/src/test/ui/parser/foreign-static-semantic-fail.rs
2021-01-13 07:49:16 -05:00

8 lines
236 B
Rust

// Syntactically, a foreign static may not have a body.
fn main() {}
extern "C" {
static X: u8 = 0; //~ ERROR incorrect `static` inside `extern` block
static mut Y: u8 = 0; //~ ERROR incorrect `static` inside `extern` block
}