fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
820 B28 linesraw
1error: constant item is never used: `foo`
2  --> $DIR/issue-17718-const-naming.rs:4:1
3   |
4LL | const foo: isize = 3;
5   | ^^^^^^^^^^^^^^^^^^^^^
6   |
7note: the lint level is defined here
8  --> $DIR/issue-17718-const-naming.rs:2:9
9   |
10LL | #![deny(warnings)]
11   |         ^^^^^^^^
12   = note: `#[deny(dead_code)]` implied by `#[deny(warnings)]`
13
14error: constant `foo` should have an upper case name
15  --> $DIR/issue-17718-const-naming.rs:4:7
16   |
17LL | const foo: isize = 3;
18   |       ^^^ help: convert the identifier to upper case (notice the capitalization): `FOO`
19   |
20note: the lint level is defined here
21  --> $DIR/issue-17718-const-naming.rs:2:9
22   |
23LL | #![deny(warnings)]
24   |         ^^^^^^^^
25   = note: `#[deny(non_upper_case_globals)]` implied by `#[deny(warnings)]`
26
27error: aborting due to 2 previous errors
28