fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0170]: pattern binding `Foo` is named the same as one of the variants of the type `foo::Foo` 2 --> $DIR/lint-uppercase-variables.rs:22:9 3 | 4LL | Foo => {} 5 | ^^^ help: to match on the variant, qualify the path: `foo::Foo::Foo` 6 | 7 = note: `#[deny(bindings_with_variant_name)]` on by default 8 9error[E0170]: pattern binding `Foo` is named the same as one of the variants of the type `foo::Foo` 10 --> $DIR/lint-uppercase-variables.rs:28:9 11 | 12LL | let Foo = foo::Foo::Foo; 13 | ^^^ help: to match on the variant, qualify the path: `foo::Foo::Foo` 14 15warning: unused variable: `Foo` 16 --> $DIR/lint-uppercase-variables.rs:22:9 17 | 18LL | Foo => {} 19 | ^^^ help: if this is intentional, prefix it with an underscore: `_Foo` 20 | 21note: the lint level is defined here 22 --> $DIR/lint-uppercase-variables.rs:1:9 23 | 24LL | #![warn(unused)] 25 | ^^^^^^ 26 = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]` 27 28warning: unused variable: `Foo` 29 --> $DIR/lint-uppercase-variables.rs:28:9 30 | 31LL | let Foo = foo::Foo::Foo; 32 | ^^^ help: if this is intentional, prefix it with an underscore: `_Foo` 33 34error[E0170]: pattern binding `Foo` is named the same as one of the variants of the type `foo::Foo` 35 --> $DIR/lint-uppercase-variables.rs:33:17 36 | 37LL | fn in_param(Foo: foo::Foo) {} 38 | ^^^ help: to match on the variant, qualify the path: `foo::Foo::Foo` 39 40warning: unused variable: `Foo` 41 --> $DIR/lint-uppercase-variables.rs:33:17 42 | 43LL | fn in_param(Foo: foo::Foo) {} 44 | ^^^ help: if this is intentional, prefix it with an underscore: `_Foo` 45 46error: structure field `X` should have a snake case name 47 --> $DIR/lint-uppercase-variables.rs:10:5 48 | 49LL | X: usize 50 | ^ help: convert the identifier to snake case (notice the capitalization): `x` 51 | 52note: the lint level is defined here 53 --> $DIR/lint-uppercase-variables.rs:3:9 54 | 55LL | #![deny(non_snake_case)] 56 | ^^^^^^^^^^^^^^ 57 58error: variable `Xx` should have a snake case name 59 --> $DIR/lint-uppercase-variables.rs:13:9 60 | 61LL | fn test(Xx: usize) { 62 | ^^ help: convert the identifier to snake case (notice the capitalization): `xx` 63 64error: variable `Test` should have a snake case name 65 --> $DIR/lint-uppercase-variables.rs:18:9 66 | 67LL | let Test: usize = 0; 68 | ^^^^ help: convert the identifier to snake case: `test` 69 70error: variable `Foo` should have a snake case name 71 --> $DIR/lint-uppercase-variables.rs:22:9 72 | 73LL | Foo => {} 74 | ^^^ help: convert the identifier to snake case (notice the capitalization): `foo` 75 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 88error: aborting due to 9 previous errors; 3 warnings emitted 89 90For more information about this error, try `rustc --explain E0170`.