summaryrefslogtreecommitdiffstats
path: root/tests/ui/extern/issue-28324.rs
blob: fbe83e325edb47e682d2752299fba255e2d8d256 (plain)
1
2
3
4
5
6
7
8
9
10
11
// revisions: mir thir
// [thir]compile-flags: -Z thir-unsafeck

extern "C" {
    static error_message_count: u32;
}

pub static BAZ: u32 = *&error_message_count;
//~^ ERROR use of extern static is unsafe and requires

fn main() {}