summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const_let_refutable.rs
blob: efb134d2eef1ad5049c235ca0ff318bd26e65eb5 (plain)
1
2
3
4
5
6
fn main() {}

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