rust/tests/ui/consts/const_let_refutable.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
437 B
Plaintext
Raw Normal View History

error[E0005]: refutable pattern in function argument: `&[]`, `&[_]` and `&[_, _, _, ..]` not covered
--> $DIR/const_let_refutable.rs:3:16
|
2019-12-27 17:53:00 +00:00
LL | const fn slice(&[a, b]: &[i32]) -> i32 {
| ^^^^^^^ patterns `&[]`, `&[_]` and `&[_, _, _, ..]` not covered
|
= note: the matched value is of type `&[i32]`
2020-05-21 19:49:38 +00:00
error: aborting due to previous error
2020-05-21 19:49:38 +00:00
For more information about this error, try `rustc --explain E0005`.