blob: f46a792282923f3719b9a86cf929ce74c306a4eb [file] [log] [blame] [edit]
//@ 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
}