mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 13:40:15 +03:00
10 lines
218 B
Rust
10 lines
218 B
Rust
//! Even referencing an unknown `extern static` already triggers an error.
|
|
|
|
extern "C" {
|
|
static mut FOO: i32;
|
|
}
|
|
|
|
fn main() {
|
|
let _val = unsafe { std::ptr::addr_of!(FOO) }; //~ ERROR: is not supported by Miri
|
|
}
|