]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/consts/const-match-check.matchck.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / consts / const-match-check.matchck.stderr
index 84600bb1b8aadebb9a089ac090b5c66b85c76862..f71490eba613541be69dc6956a977315fc1dac49 100644 (file)
@@ -10,7 +10,7 @@ LL | const X: i32 = { let 0 = 0; 0 };
 help: you might want to use `if let` to ignore the variant that isn't matched
    |
 LL | const X: i32 = { if let 0 = 0 { /* */ } 0 };
-   |                  ^^^^^^^^^^^^^^^^^^^^^^
+   |                  ~~~~~~~~~~~~~~~~~~~~~~
 
 error[E0005]: refutable pattern in local binding: `i32::MIN..=-1_i32` and `1_i32..=i32::MAX` not covered
   --> $DIR/const-match-check.rs:8:23
@@ -24,7 +24,7 @@ LL | static Y: i32 = { let 0 = 0; 0 };
 help: you might want to use `if let` to ignore the variant that isn't matched
    |
 LL | static Y: i32 = { if let 0 = 0 { /* */ } 0 };
-   |                   ^^^^^^^^^^^^^^^^^^^^^^
+   |                   ~~~~~~~~~~~~~~~~~~~~~~
 
 error[E0005]: refutable pattern in local binding: `i32::MIN..=-1_i32` and `1_i32..=i32::MAX` not covered
   --> $DIR/const-match-check.rs:13:26
@@ -38,7 +38,7 @@ LL |     const X: i32 = { let 0 = 0; 0 };
 help: you might want to use `if let` to ignore the variant that isn't matched
    |
 LL |     const X: i32 = { if let 0 = 0 { /* */ } 0 };
-   |                      ^^^^^^^^^^^^^^^^^^^^^^
+   |                      ~~~~~~~~~~~~~~~~~~~~~~
 
 error[E0005]: refutable pattern in local binding: `i32::MIN..=-1_i32` and `1_i32..=i32::MAX` not covered
   --> $DIR/const-match-check.rs:19:26
@@ -52,7 +52,7 @@ LL |     const X: i32 = { let 0 = 0; 0 };
 help: you might want to use `if let` to ignore the variant that isn't matched
    |
 LL |     const X: i32 = { if let 0 = 0 { /* */ } 0 };
-   |                      ^^^^^^^^^^^^^^^^^^^^^^
+   |                      ~~~~~~~~~~~~~~~~~~~~~~
 
 error: aborting due to 4 previous errors