]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/issue-17718-const-naming.stderr
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / ui / lint / issue-17718-const-naming.stderr
1 error: constant `foo` is never used
2   --> $DIR/issue-17718-const-naming.rs:4:7
3    |
4 LL | const foo: isize = 3;
5    |       ^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/issue-17718-const-naming.rs:2:9
9    |
10 LL | #![deny(warnings)]
11    |         ^^^^^^^^
12    = note: `#[deny(dead_code)]` implied by `#[deny(warnings)]`
13
14 error: constant `foo` should have an upper case name
15   --> $DIR/issue-17718-const-naming.rs:4:7
16    |
17 LL | const foo: isize = 3;
18    |       ^^^ help: convert the identifier to upper case (notice the capitalization): `FOO`
19    |
20    = note: `#[deny(non_upper_case_globals)]` implied by `#[deny(warnings)]`
21
22 error: aborting due to 2 previous errors
23