]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/lint-non-uppercase-statics.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / lint / lint-non-uppercase-statics.stderr
1 error: static variable `foo` should have an upper case name
2 --> $DIR/lint-non-uppercase-statics.rs:4:8
3 |
4 LL | static foo: isize = 1;
5 | ^^^ help: convert the identifier to upper case (notice the capitalization): `FOO`
6 |
7 note: the lint level is defined here
8 --> $DIR/lint-non-uppercase-statics.rs:1:11
9 |
10 LL | #![forbid(non_upper_case_globals)]
11 | ^^^^^^^^^^^^^^^^^^^^^^
12
13 error: static variable `bar` should have an upper case name
14 --> $DIR/lint-non-uppercase-statics.rs:6:12
15 |
16 LL | static mut bar: isize = 1;
17 | ^^^ help: convert the identifier to upper case: `BAR`
18
19 error: aborting due to 2 previous errors
20