12 lines
227 B
Rust
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
|
||
|
}
|