]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/lint/lint-uppercase-variables.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / lint / lint-uppercase-variables.rs
index 86a39502a81cc62c8debf8bb685cc930ba7e2156..b590fa697adb3dd17c846c0d3d554d21019fedc3 100644 (file)
@@ -21,10 +21,20 @@ fn main() {
     match foo::Foo::Foo {
         Foo => {}
 //~^ ERROR variable `Foo` should have a snake case name
-//~^^ WARN `Foo` is named the same as one of the variants of the type `foo::Foo`
+//~^^ WARN `Foo` is named the same as one of the variants of the type `Foo`
 //~^^^ WARN unused variable: `Foo`
     }
 
+    let Foo = foo::Foo::Foo;
+    //~^ ERROR variable `Foo` should have a snake case name
+    //~^^ WARN `Foo` is named the same as one of the variants of the type `Foo`
+    //~^^^ WARN unused variable: `Foo`
+
+    fn in_param(Foo: foo::Foo) {}
+    //~^ ERROR variable `Foo` should have a snake case name
+    //~^^ WARN `Foo` is named the same as one of the variants of the type `Foo`
+    //~^^^ WARN unused variable: `Foo`
+
     test(1);
 
     let _ = Something { X: 0 };