]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/foreign-static-semantic-fail.rs
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[rust.git] / src / test / ui / parser / foreign-static-semantic-fail.rs
1 // Syntactically, a foreign static may not have a body.
2
3 fn main() {}
4
5 extern "C" {
6     static X: u8 = 0; //~ ERROR incorrect `static` inside `extern` block
7     static mut Y: u8 = 0; //~ ERROR incorrect `static` inside `extern` block
8 }