]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-uppercase-variables.stderr
Move parse-fail tests to UI
[rust.git] / src / test / ui / lint / lint-uppercase-variables.stderr
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
3    |
4 LL |         Foo => {}
5    |         ^^^ help: to match on the variant, qualify the path: `foo::Foo::Foo`
6
7 warning: unused variable: `Foo`
8   --> $DIR/lint-uppercase-variables.rs:32:9
9    |
10 LL |         Foo => {}
11    |         ^^^ help: consider using `_Foo` instead
12    |
13 note: lint level defined here
14   --> $DIR/lint-uppercase-variables.rs:11:9
15    |
16 LL | #![warn(unused)]
17    |         ^^^^^^
18    = note: #[warn(unused_variables)] implied by #[warn(unused)]
19
20 error: structure field `X` should have a snake case name such as `x`
21   --> $DIR/lint-uppercase-variables.rs:20:5
22    |
23 LL |     X: usize //~ ERROR structure field `X` should have a snake case name such as `x`
24    |     ^^^^^^^^
25    |
26 note: lint level defined here
27   --> $DIR/lint-uppercase-variables.rs:13:9
28    |
29 LL | #![deny(non_snake_case)]
30    |         ^^^^^^^^^^^^^^
31
32 error: variable `Xx` should have a snake case name such as `xx`
33   --> $DIR/lint-uppercase-variables.rs:23:9
34    |
35 LL | fn test(Xx: usize) { //~ ERROR variable `Xx` should have a snake case name such as `xx`
36    |         ^^
37
38 error: variable `Test` should have a snake case name such as `test`
39   --> $DIR/lint-uppercase-variables.rs:28:9
40    |
41 LL |     let Test: usize = 0; //~ ERROR variable `Test` should have a snake case name such as `test`
42    |         ^^^^
43
44 error: variable `Foo` should have a snake case name such as `foo`
45   --> $DIR/lint-uppercase-variables.rs:32:9
46    |
47 LL |         Foo => {}
48    |         ^^^
49
50 error: aborting due to 4 previous errors
51
52 For more information about this error, try `rustc --explain E0170`.