]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/foreign-const-syntactic-fail.rs
Change syntax for TyAlias where clauses
[rust.git] / src / test / ui / parser / foreign-const-syntactic-fail.rs
1 // Syntactically, a `const` item inside an `extern { ... }` block is not allowed.
2
3 fn main() {}
4
5 #[cfg(FALSE)]
6 extern "C" {
7     const A: isize; //~ ERROR extern items cannot be `const`
8     const B: isize = 42; //~ ERROR extern items cannot be `const`
9 }