1 warning[E0170]: pattern binding `Foo` is named the same as one of the variants of the type `foo::Foo`
2 --> $DIR/lint-uppercase-variables.rs:32:9
5 | ^^^ help: to match on the variant, qualify the path: `foo::Foo::Foo`
7 warning: unused variable: `Foo`
8 --> $DIR/lint-uppercase-variables.rs:32:9
11 | ^^^ help: consider using `_Foo` instead
13 note: lint level defined here
14 --> $DIR/lint-uppercase-variables.rs:11:9
18 = note: #[warn(unused_variables)] implied by #[warn(unused)]
20 error: structure field `X` should have a snake case name such as `x`
21 --> $DIR/lint-uppercase-variables.rs:20:5
23 LL | X: usize //~ ERROR structure field `X` should have a snake case name such as `x`
26 note: lint level defined here
27 --> $DIR/lint-uppercase-variables.rs:13:9
29 LL | #![deny(non_snake_case)]
32 error: variable `Xx` should have a snake case name such as `xx`
33 --> $DIR/lint-uppercase-variables.rs:23:9
35 LL | fn test(Xx: usize) { //~ ERROR variable `Xx` should have a snake case name such as `xx`
38 error: variable `Test` should have a snake case name such as `test`
39 --> $DIR/lint-uppercase-variables.rs:28:9
41 LL | let Test: usize = 0; //~ ERROR variable `Test` should have a snake case name such as `test`
44 error: variable `Foo` should have a snake case name such as `foo`
45 --> $DIR/lint-uppercase-variables.rs:32:9
50 error: aborting due to 4 previous errors
52 For more information about this error, try `rustc --explain E0170`.