]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lint/lint-uppercase-variables.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / lint / lint-uppercase-variables.stderr
CommitLineData
1b1a35ee 1warning[E0170]: pattern binding `Foo` is named the same as one of the variants of the type `Foo`
0731742a 2 --> $DIR/lint-uppercase-variables.rs:22:9
b7449926
XL
3 |
4LL | Foo => {}
1b1a35ee 5 | ^^^ help: to match on the variant, qualify the path: `Foo::Foo`
dfeec247
XL
6 |
7 = note: `#[warn(bindings_with_variant_name)]` on by default
8
1b1a35ee 9warning[E0170]: pattern binding `Foo` is named the same as one of the variants of the type `Foo`
dfeec247
XL
10 --> $DIR/lint-uppercase-variables.rs:28:9
11 |
12LL | let Foo = foo::Foo::Foo;
1b1a35ee 13 | ^^^ help: to match on the variant, qualify the path: `Foo::Foo`
dfeec247 14
1b1a35ee 15warning[E0170]: pattern binding `Foo` is named the same as one of the variants of the type `Foo`
dfeec247
XL
16 --> $DIR/lint-uppercase-variables.rs:33:17
17 |
18LL | fn in_param(Foo: foo::Foo) {}
1b1a35ee 19 | ^^^ help: to match on the variant, qualify the path: `Foo::Foo`
b7449926
XL
20
21warning: unused variable: `Foo`
0731742a 22 --> $DIR/lint-uppercase-variables.rs:22:9
b7449926
XL
23 |
24LL | Foo => {}
ba9703b0 25 | ^^^ help: if this is intentional, prefix it with an underscore: `_Foo`
b7449926 26 |
74b04a01 27note: the lint level is defined here
0731742a 28 --> $DIR/lint-uppercase-variables.rs:1:9
b7449926
XL
29 |
30LL | #![warn(unused)]
31 | ^^^^^^
416331ca 32 = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
b7449926 33
dfeec247
XL
34warning: unused variable: `Foo`
35 --> $DIR/lint-uppercase-variables.rs:28:9
36 |
37LL | let Foo = foo::Foo::Foo;
ba9703b0 38 | ^^^ help: if this is intentional, prefix it with an underscore: `_Foo`
dfeec247
XL
39
40warning: unused variable: `Foo`
41 --> $DIR/lint-uppercase-variables.rs:33:17
42 |
43LL | fn in_param(Foo: foo::Foo) {}
ba9703b0 44 | ^^^ help: if this is intentional, prefix it with an underscore: `_Foo`
dfeec247 45
0731742a
XL
46error: structure field `X` should have a snake case name
47 --> $DIR/lint-uppercase-variables.rs:10:5
b7449926 48 |
532ac7d7 49LL | X: usize
e74abb32 50 | ^ help: convert the identifier to snake case (notice the capitalization): `x`
b7449926 51 |
74b04a01 52note: the lint level is defined here
0731742a 53 --> $DIR/lint-uppercase-variables.rs:3:9
b7449926
XL
54 |
55LL | #![deny(non_snake_case)]
56 | ^^^^^^^^^^^^^^
57
0731742a
XL
58error: variable `Xx` should have a snake case name
59 --> $DIR/lint-uppercase-variables.rs:13:9
b7449926 60 |
532ac7d7 61LL | fn test(Xx: usize) {
e74abb32 62 | ^^ help: convert the identifier to snake case (notice the capitalization): `xx`
b7449926 63
0731742a
XL
64error: variable `Test` should have a snake case name
65 --> $DIR/lint-uppercase-variables.rs:18:9
b7449926 66 |
532ac7d7 67LL | let Test: usize = 0;
0731742a 68 | ^^^^ help: convert the identifier to snake case: `test`
b7449926 69
0731742a
XL
70error: variable `Foo` should have a snake case name
71 --> $DIR/lint-uppercase-variables.rs:22:9
b7449926
XL
72 |
73LL | Foo => {}
e74abb32 74 | ^^^ help: convert the identifier to snake case (notice the capitalization): `foo`
b7449926 75
dfeec247
XL
76error: variable `Foo` should have a snake case name
77 --> $DIR/lint-uppercase-variables.rs:28:9
78 |
79LL | let Foo = foo::Foo::Foo;
80 | ^^^ help: convert the identifier to snake case (notice the capitalization): `foo`
81
82error: variable `Foo` should have a snake case name
83 --> $DIR/lint-uppercase-variables.rs:33:17
84 |
85LL | fn in_param(Foo: foo::Foo) {}
86 | ^^^ help: convert the identifier to snake case (notice the capitalization): `foo`
87
ba9703b0 88error: aborting due to 6 previous errors; 6 warnings emitted
b7449926
XL
89
90For more information about this error, try `rustc --explain E0170`.