| 
1 |  | -warning[E0170]: pattern binding `Foo` is named the same as one of the variants of the type `foo::Foo`  | 
 | 1 | +error[E0170]: pattern binding `Foo` is named the same as one of the variants of the type `foo::Foo`  | 
2 | 2 |   --> $DIR/lint-uppercase-variables.rs:22:9  | 
3 | 3 |    |  | 
4 | 4 | LL |         Foo => {}  | 
5 | 5 |    |         ^^^ help: to match on the variant, qualify the path: `foo::Foo::Foo`  | 
6 | 6 |    |  | 
7 |  | -   = note: `#[warn(bindings_with_variant_name)]` on by default  | 
 | 7 | +   = note: `#[deny(bindings_with_variant_name)]` on by default  | 
8 | 8 | 
 
  | 
9 |  | -warning[E0170]: pattern binding `Foo` is named the same as one of the variants of the type `foo::Foo`  | 
 | 9 | +error[E0170]: pattern binding `Foo` is named the same as one of the variants of the type `foo::Foo`  | 
10 | 10 |   --> $DIR/lint-uppercase-variables.rs:28:9  | 
11 | 11 |    |  | 
12 | 12 | LL |     let Foo = foo::Foo::Foo;  | 
13 | 13 |    |         ^^^ help: to match on the variant, qualify the path: `foo::Foo::Foo`  | 
14 | 14 | 
 
  | 
15 |  | -warning[E0170]: pattern binding `Foo` is named the same as one of the variants of the type `foo::Foo`  | 
 | 15 | +error[E0170]: pattern binding `Foo` is named the same as one of the variants of the type `foo::Foo`  | 
16 | 16 |   --> $DIR/lint-uppercase-variables.rs:33:17  | 
17 | 17 |    |  | 
18 | 18 | LL |     fn in_param(Foo: foo::Foo) {}  | 
@@ -85,6 +85,6 @@ error: variable `Foo` should have a snake case name  | 
85 | 85 | LL |     fn in_param(Foo: foo::Foo) {}  | 
86 | 86 |    |                 ^^^ help: convert the identifier to snake case (notice the capitalization): `foo`  | 
87 | 87 | 
 
  | 
88 |  | -error: aborting due to 6 previous errors; 6 warnings emitted  | 
 | 88 | +error: aborting due to 9 previous errors; 3 warnings emitted  | 
89 | 89 | 
 
  | 
90 | 90 | For more information about this error, try `rustc --explain E0170`.  | 
0 commit comments