]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const_let_refutable.rs
Rollup merge of #106949 - compiler-errors:is-poly, r=BoxyUwU
[rust.git] / tests / ui / consts / const_let_refutable.rs
1 fn main() {}
2
3 const fn slice(&[a, b]: &[i32]) -> i32 {
4     //~^ ERROR refutable pattern in function argument
5     a + b
6 }