1 error[E0005]: refutable pattern in function argument: `&[]` not covered
2 --> $DIR/const_let_refutable.rs:3:16
4 LL | const fn slice([a, b]: &[i32]) -> i32 {
5 | ^^^^^^ pattern `&[]` not covered
7 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`
8 --> $DIR/const_let_refutable.rs:4:5
13 = note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
14 = help: add `#![feature(const_fn)]` to the crate attributes to enable
16 warning[E0381]: use of possibly uninitialized variable: `a`
17 --> $DIR/const_let_refutable.rs:4:5
20 | ^ use of possibly uninitialized `a`
22 = warning: this error has been downgraded to a warning for backwards compatibility with previous releases
23 = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future
24 = note: for more information, try `rustc --explain E0729`
26 warning[E0381]: use of possibly uninitialized variable: `b`
27 --> $DIR/const_let_refutable.rs:4:9
30 | ^ use of possibly uninitialized `b`
32 = warning: this error has been downgraded to a warning for backwards compatibility with previous releases
33 = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future
34 = note: for more information, try `rustc --explain E0729`
36 error: aborting due to 2 previous errors
38 Some errors have detailed explanations: E0005, E0381, E0723.
39 For more information about an error, try `rustc --explain E0005`.