]> git.lizzy.rs Git - rust.git/blob - src/test/ui/extern/extern-const.stderr
parse extern consts
[rust.git] / src / test / ui / extern / extern-const.stderr
1 error: extern items cannot be `const`
2   --> $DIR/extern-const.rs:16:11
3    |
4 LL | extern "C" {
5    | ---------- in this `extern` block
6 LL |     const rust_dbg_static_mut: libc::c_int;
7    |     ------^^^^^^^^^^^^^^^^^^^
8    |     |
9    |     help: try using a static value: `static`
10    |
11    = note: for more information, visit https://doc.rust-lang.org/std/keyword.extern.html
12
13 error: aborting due to previous error
14