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