2022-12-24 04:02:23 +08:00
|
|
|
error[E0005]: refutable pattern in function argument
|
2019-01-09 18:32:56 +08:00
|
|
|
--> $DIR/const_let_refutable.rs:3:16
|
|
|
|
|
|
2019-12-28 01:53:00 +08:00
|
|
|
LL | const fn slice(&[a, b]: &[i32]) -> i32 {
|
|
|
|
| ^^^^^^^ patterns `&[]`, `&[_]` and `&[_, _, _, ..]` not covered
|
2020-03-27 13:44:30 +08:00
|
|
|
|
|
|
|
|
= note: the matched value is of type `&[i32]`
|
2019-01-09 18:32:56 +08:00
|
|
|
|
2023-11-21 23:44:16 +08:00
|
|
|
error: aborting due to 1 previous error
|
2019-01-09 18:32:56 +08:00
|
|
|
|
2020-05-22 03:49:38 +08:00
|
|
|
For more information about this error, try `rustc --explain E0005`.
|