]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/extern/extern-const.stderr
parse extern consts
[rust.git] / src / test / ui / extern / extern-const.stderr
index 258202b6903d31cc3e18070a31b5ffa057e7f25d..97e11381c6f7821aa1d5c81e77448216ce5f56c0 100644 (file)
@@ -1,8 +1,14 @@
 error: extern items cannot be `const`
-  --> $DIR/extern-const.rs:16:5
+  --> $DIR/extern-const.rs:16:11
    |
+LL | extern "C" {
+   | ---------- in this `extern` block
 LL |     const rust_dbg_static_mut: libc::c_int;
-   |     ^^^^^ help: try using a static value: `static`
+   |     ------^^^^^^^^^^^^^^^^^^^
+   |     |
+   |     help: try using a static value: `static`
+   |
+   = note: for more information, visit https://doc.rust-lang.org/std/keyword.extern.html
 
 error: aborting due to previous error