rust/tests/ui/lint/lint-non-uppercase-statics.stderr

21 lines
660 B
Plaintext
Raw Normal View History

error: static variable `foo` should have an upper case name
--> $DIR/lint-non-uppercase-statics.rs:4:8
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | static foo: isize = 1;
| ^^^ help: convert the identifier to upper case (notice the capitalization): `FOO`
2018-08-08 07:28:26 -05:00
|
2020-01-22 17:57:38 -06:00
note: the lint level is defined here
2018-12-25 09:56:47 -06:00
--> $DIR/lint-non-uppercase-statics.rs:1:11
2018-08-08 07:28:26 -05:00
|
LL | #![forbid(non_upper_case_globals)]
| ^^^^^^^^^^^^^^^^^^^^^^
error: static variable `bar` should have an upper case name
--> $DIR/lint-non-uppercase-statics.rs:6:12
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | static mut bar: isize = 1;
| ^^^ help: convert the identifier to upper case: `BAR`
2018-08-08 07:28:26 -05:00
error: aborting due to 2 previous errors