1 error: constant item is never used: `foo`
2 --> $DIR/issue-17718-const-naming.rs:14:1
4 LL | const foo: isize = 3;
5 | ^^^^^^^^^^^^^^^^^^^^^
7 note: lint level defined here
8 --> $DIR/issue-17718-const-naming.rs:12:8
10 LL | #[deny(warnings)]
12 = note: #[deny(dead_code)] implied by #[deny(warnings)]
14 error: constant `foo` should have an upper case name such as `FOO`
15 --> $DIR/issue-17718-const-naming.rs:14:1
17 LL | const foo: isize = 3;
18 | ^^^^^^^^^^^^^^^^^^^^^
20 note: lint level defined here
21 --> $DIR/issue-17718-const-naming.rs:12:8
23 LL | #[deny(warnings)]
25 = note: #[deny(non_upper_case_globals)] implied by #[deny(warnings)]
27 error: aborting due to 2 previous errors