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