summary refs log tree commit diff
path: root/src/test/ui/consts/const_let_refutable.rs
blob: e49d47673912a29c8f678d936ecfb5f85f78ae26 (plain)
1
2
3
4
5
6
7
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
}