rust/tests/fail/extern_static_in_const.rs
2022-06-21 21:03:40 -07:00

12 lines
227 B
Rust

//! Even referencing an unknown `extern static` already triggers an error.
extern "C" {
static E: [u8; 0];
}
static X: &'static [u8; 0] = unsafe { &E };
fn main() {
let _val = X; //~ ERROR is not supported by Miri
}