]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/foreign-const-semantic-fail.rs
Merge commit 'efa8f5521d3813cc897ba29ea0ef98c7aef66bb6' into rustfmt-subtree
[rust.git] / src / test / ui / parser / foreign-const-semantic-fail.rs
1 fn main() {}
2
3 extern "C" {
4     const A: isize;
5     //~^ ERROR extern items cannot be `const`
6     const B: isize = 42;
7     //~^ ERROR extern items cannot be `const`
8     //~| ERROR incorrect `static` inside `extern` block
9 }