]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const_let_refutable.stderr
Do not suggest `let_else` if no bindings would be introduced
[rust.git] / src / test / ui / consts / const_let_refutable.stderr
1 error[E0005]: refutable pattern in function argument: `&[]`, `&[_]` and `&[_, _, _, ..]` not covered
2   --> $DIR/const_let_refutable.rs:3:16
3    |
4 LL | const fn slice(&[a, b]: &[i32]) -> i32 {
5    |                ^^^^^^^ patterns `&[]`, `&[_]` and `&[_, _, _, ..]` not covered
6    |
7    = note: the matched value is of type `&[i32]`
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0005`.