rust/src/test/ui/lint/lint-non-uppercase-statics.stderr

21 lines
656 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error: static variable `foo` should have an upper case name such as `FOO`
--> $DIR/lint-non-uppercase-statics.rs:14:1
|
LL | static foo: isize = 1; //~ ERROR static variable `foo` should have an upper case name such as `FOO`
| ^^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
--> $DIR/lint-non-uppercase-statics.rs:11:11
|
LL | #![forbid(non_upper_case_globals)]
| ^^^^^^^^^^^^^^^^^^^^^^
error: static variable `bar` should have an upper case name such as `BAR`
--> $DIR/lint-non-uppercase-statics.rs:16:1
|
LL | static mut bar: isize = 1;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors