]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/consts/const_let_refutable.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / consts / const_let_refutable.stderr
index 7f15f02d4d37bb3e96a382d16c8b45f6dddb3335..9acb4ad9cbbe5e4c3f8c4616de1b5546c5f8c11b 100644 (file)
@@ -1,8 +1,8 @@
-error[E0005]: refutable pattern in function argument: `&[]`, `&[_]` and `&[_, _, _]` not covered
+error[E0005]: refutable pattern in function argument: `&[]`, `&[_]` and `&[_, _, _, ..]` not covered
   --> $DIR/const_let_refutable.rs:3:16
    |
 LL | const fn slice([a, b]: &[i32]) -> i32 {
-   |                ^^^^^^ patterns `&[]`, `&[_]` and `&[_, _, _]` not covered
+   |                ^^^^^^ patterns `&[]`, `&[_]` and `&[_, _, _, ..]` not covered
 
 error[E0723]: can only call other `const fn` within a `const fn`, but `const <&i32 as std::ops::Add>::add` is not stable as `const fn`
   --> $DIR/const_let_refutable.rs:4:5