]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/foreign-const-syntactic-fail.stderr
Add 'compiler/rustc_codegen_cranelift/' from commit '793d26047f994e23415f8f6bb5686ff2...
[rust.git] / src / test / ui / parser / foreign-const-syntactic-fail.stderr
1 error: extern items cannot be `const`
2   --> $DIR/foreign-const-syntactic-fail.rs:7:11
3    |
4 LL |     const A: isize;
5    |     ------^
6    |     |
7    |     help: try using a static value: `static`
8    |
9    = note: for more information, visit https://doc.rust-lang.org/std/keyword.extern.html
10
11 error: extern items cannot be `const`
12   --> $DIR/foreign-const-syntactic-fail.rs:8:11
13    |
14 LL |     const B: isize = 42;
15    |     ------^
16    |     |
17    |     help: try using a static value: `static`
18    |
19    = note: for more information, visit https://doc.rust-lang.org/std/keyword.extern.html
20
21 error: aborting due to 2 previous errors
22