fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
808 B19 linesraw
1error[E0005]: refutable pattern in function argument: `&[]`, `&[_]` and `&[_, _, _, ..]` not covered
2  --> $DIR/const_let_refutable.rs:3:16
3   |
4LL | const fn slice(&[a, b]: &[i32]) -> i32 {
5   |                ^^^^^^^ patterns `&[]`, `&[_]` and `&[_, _, _, ..]` not covered
6
7error[E0723]: loops and conditional expressions are not stable in const fn
8  --> $DIR/const_let_refutable.rs:3:17
9   |
10LL | const fn slice(&[a, b]: &[i32]) -> i32 {
11   |                 ^^^^^^
12   |
13   = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
14   = help: add `#![feature(const_fn)]` to the crate attributes to enable
15
16error: aborting due to 2 previous errors
17
18Some errors have detailed explanations: E0005, E0723.
19For more information about an error, try `rustc --explain E0005`.