2022-06-09 22:14:24 -05:00
|
|
|
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
|
2019-01-04 14:00:15 -06:00
|
|
|
--> $DIR/issue-17718-const-naming.rs:2:9
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
2019-01-04 14:00:15 -06:00
|
|
|
LL | #![deny(warnings)]
|
|
|
|
| ^^^^^^^^
|
2019-07-16 15:17:38 -05:00
|
|
|
= note: `#[deny(dead_code)]` implied by `#[deny(warnings)]`
|
2018-07-15 16:11:54 -05:00
|
|
|
|
2019-01-04 14:00:15 -06: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;
|
2019-10-13 23:48:39 -05:00
|
|
|
| ^^^ help: convert the identifier to upper case (notice the capitalization): `FOO`
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
2019-07-16 15:17:38 -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
|
|
|
|
|