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

21 lines
653 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`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-non-uppercase-statics.rs:4:1
2018-08-08 07:28:26 -05:00
|
LL | static foo: isize = 1; //~ ERROR static variable `foo` should have an upper case name such as `FOO`
| ^^^^^^^^^^^^^^^^^^^^^^
|
note: lint level 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 such as `BAR`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-non-uppercase-statics.rs:6:1
2018-08-08 07:28:26 -05:00
|
LL | static mut bar: isize = 1;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors