| //@ reference: const-eval.const-expr.path-static | |
| //@ reference: items.extern.static.safety | |
| extern "C" { | |
| static error_message_count: u32; | |
| } | |
| pub static BAZ: u32 = *&error_message_count; | |
| //~^ ERROR use of extern static is unsafe and requires | |
| //~| ERROR cannot access extern static | |
| fn main() {} |