rust/tests/ui/lint/issue-17718-const-naming.stderr

24 lines
671 B
Plaintext
Raw Normal View History

error: constant `foo` is never used
2022-06-22 13:33:59 -05:00
--> $DIR/issue-17718-const-naming.rs:4:7
2018-07-15 16:11:54 -05:00
|
LL | const foo: isize = 3;
2022-06-22 13:33:59 -05:00
| ^^^
2018-07-15 16:11:54 -05:00
|
2020-01-22 17:57:38 -06:00
note: the lint level is defined here
--> $DIR/issue-17718-const-naming.rs:2:9
2018-07-15 16:11:54 -05:00
|
LL | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(dead_code)]` implied by `#[deny(warnings)]`
2018-07-15 16:11:54 -05:00
error: constant `foo` should have an upper case name
--> $DIR/issue-17718-const-naming.rs:4:7
2018-07-15 16:11:54 -05:00
|
LL | const foo: isize = 3;
| ^^^ help: convert the identifier to upper case (notice the capitalization): `FOO`
2018-07-15 16:11:54 -05:00
|
= note: `#[deny(non_upper_case_globals)]` implied by `#[deny(warnings)]`
2018-07-15 16:11:54 -05:00
error: aborting due to 2 previous errors