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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
671 B
Plaintext
Raw Normal View History

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
--> $DIR/issue-17718-const-naming.rs:2:9
2018-07-15 21:11:54 +00:00
|
LL | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(dead_code)]` implied by `#[deny(warnings)]`
2018-07-15 21:11:54 +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;
| ^^^ help: convert the identifier to upper case (notice the capitalization): `FOO`
2018-07-15 21:11:54 +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