fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
653 B20 linesraw
1error: static variable `foo` should have an upper case name
2  --> $DIR/lint-non-uppercase-statics.rs:4:8
3   |
4LL | static foo: isize = 1;
5   |        ^^^ help: convert the identifier to upper case (notice the capitalization): `FOO`
6   |
7note: lint level defined here
8  --> $DIR/lint-non-uppercase-statics.rs:1:11
9   |
10LL | #![forbid(non_upper_case_globals)]
11   |           ^^^^^^^^^^^^^^^^^^^^^^
12
13error: static variable `bar` should have an upper case name
14  --> $DIR/lint-non-uppercase-statics.rs:6:12
15   |
16LL | static mut bar: isize = 1;
17   |            ^^^ help: convert the identifier to upper case: `BAR`
18
19error: aborting due to 2 previous errors
20