rust/tests/ui/consts/const_let_refutable.rs
2023-01-11 09:32:08 +00:00

7 lines
121 B
Rust

fn main() {}
const fn slice(&[a, b]: &[i32]) -> i32 {
//~^ ERROR refutable pattern in function argument
a + b
}