rust/src/test/ui/consts/const_let_refutable.rs
2020-02-01 22:10:58 +00:00

7 lines
197 B
Rust

fn main() {}
const fn slice(&[a, b]: &[i32]) -> i32 {
//~^ ERROR refutable pattern in function argument
//~| ERROR loops and conditional expressions are not stable in const fn
a + b
}