mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
11 lines
232 B
Rust
11 lines
232 B
Rust
#![feature(raw_ref_op)]
|
|
//! Even referencing an unknown `extern static` already triggers an error.
|
|
|
|
extern "C" {
|
|
static mut FOO: i32;
|
|
}
|
|
|
|
fn main() {
|
|
let _val = unsafe { &raw const FOO }; //~ ERROR is not supported by Miri
|
|
}
|