summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/foreign-const-semantic-fail.rs
blob: c9940b74aa2a0af0fa6c52db8d6dd41357130969 (plain)
1
2
3
4
5
6
7
8
9
fn main() {}

extern "C" {
    const A: isize;
    //~^ ERROR extern items cannot be `const`
    const B: isize = 42;
    //~^ ERROR extern items cannot be `const`
    //~| ERROR incorrect `static` inside `extern` block
}