]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/const-pattern-irrefutable.rs
Various minor/cosmetic improvements to code
[rust.git] / src / test / ui / consts / const-pattern-irrefutable.rs
index af0b95e002d84cdb98a76102334ddb0d2aebf464..2f08d124848787a4721b6fad7aac02e84d19b383 100644 (file)
@@ -19,8 +19,8 @@ mod foo {
 const a: u8 = 2;
 
 fn main() {
-    let a = 4; //~ ERROR refutable pattern in local binding: `_` not covered
-    let c = 4; //~ ERROR refutable pattern in local binding: `_` not covered
-    let d = 4; //~ ERROR refutable pattern in local binding: `_` not covered
-    fn f() {} // Check that the `NOTE`s still work with an item here (c.f. issue #35115).
+    let a = 4; //~ ERROR refutable pattern in local binding: `0u8..=1u8` not covered
+    let c = 4; //~ ERROR refutable pattern in local binding: `0u8..=1u8` not covered
+    let d = 4; //~ ERROR refutable pattern in local binding: `0u8..=1u8` not covered
+    fn f() {} // Check that the `NOTE`s still work with an item here (cf. issue #35115).
 }