rust/src/test/ui/lint/lint-uppercase-variables.stderr

53 lines
1.7 KiB
Plaintext

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