1 error: extern items cannot be `const`
2 --> $DIR/foreign-const-semantic-fail.rs:4:11
7 | help: try using a static value: `static`
9 = note: for more information, visit https://doc.rust-lang.org/std/keyword.extern.html
11 error: extern items cannot be `const`
12 --> $DIR/foreign-const-semantic-fail.rs:6:11
14 LL | const B: isize = 42;
17 | help: try using a static value: `static`
19 = note: for more information, visit https://doc.rust-lang.org/std/keyword.extern.html
21 error: incorrect `static` inside `extern` block
22 --> $DIR/foreign-const-semantic-fail.rs:6:11
25 | ---------- `extern` blocks define existing foreign statics and statics inside of them cannot have a body
27 LL | const B: isize = 42;
28 | ^ -- the invalid body
32 = note: for more information, visit https://doc.rust-lang.org/std/keyword.extern.html
34 error: aborting due to 3 previous errors