fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
625 B22 linesraw
1error: extern items cannot be `const`
2  --> $DIR/foreign-const-syntactic-fail.rs:7:11
3   |
4LL |     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
11error: extern items cannot be `const`
12  --> $DIR/foreign-const-syntactic-fail.rs:8:11
13   |
14LL |     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
21error: aborting due to 2 previous errors
22