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