2016-08-26 11:23:42 -05:00
|
|
|
// aux-build:extern-statics.rs
|
|
|
|
|
|
|
|
extern crate extern_statics;
|
|
|
|
use extern_statics::*;
|
|
|
|
|
|
|
|
extern {
|
|
|
|
static A: u8;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2018-07-10 03:52:05 -05:00
|
|
|
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
|
2016-08-26 11:23:42 -05:00
|
|
|
}
|