]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/consts/const-match-check.eval2.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / consts / const-match-check.eval2.stderr
index 80d9f794bc1d5ae35165abf4b5e935102e16ec3b..4e1d50f42d461dfc46b9531d831f88aa830caa5e 100644 (file)
@@ -6,6 +6,7 @@ LL |     let x: [i32; { let 0 = 0; 0 }] = [];
    |
    = note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
    = note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
+   = note: the matched value is of type `i32`
 help: you might want to use `if let` to ignore the variant that isn't matched
    |
 LL |     let x: [i32; { if let 0 = 0 { /* */ } 0 }] = [];