]> git.lizzy.rs Git - rust.git/blobdiff - tests/compile-fail/non_expressive_names.rs
don't lint on binding names where only a numeric char changes to another numeric
[rust.git] / tests / compile-fail / non_expressive_names.rs
index ac412fb44755daf7dfb3261d1254cb7797963de1..7d0cea70366932f7e1cb7a450c42fb60b7fa4fe5 100644 (file)
@@ -10,6 +10,7 @@
 //~| NOTE: lint level defined here
 //~| NOTE: lint level defined here
 //~| NOTE: lint level defined here
+//~| NOTE: lint level defined here
 #![allow(unused)]
 
 fn main() {
@@ -67,6 +68,14 @@ fn main() {
         (cheese2, 2) => panic!(),
         _ => println!(""),
     }
+    let ipv4: i32;
+    let ipv6: i32;
+    let abcd1: i32;
+    let abdc2: i32;
+    let xyz1abc: i32; //~ NOTE: existing binding defined here
+    let xyz2abc: i32;
+    let xyzeabc: i32; //~ ERROR: name is too similar
+    //~| HELP: for further information visit
 }
 
 #[derive(Clone, Debug)]