mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
982b49494e
This is to make the diff when stabilizing it easier to review.
16 lines
365 B
Rust
16 lines
365 B
Rust
// aux-build:extern-statics.rs
|
|
|
|
extern crate extern_statics;
|
|
use extern_statics::*;
|
|
|
|
extern "C" {
|
|
static A: u8;
|
|
}
|
|
|
|
fn main() {
|
|
let a = A; //~ ERROR use of extern static is unsafe
|
|
let ra = &A; //~ ERROR use of extern static is unsafe
|
|
let xa = XA; //~ ERROR use of extern static is unsafe
|
|
let xra = &XA; //~ ERROR use of extern static is unsafe
|
|
}
|