blob: d48d5945e7da94a87e47ad8137648ba63c479a93 (
plain)
1
2
3
4
5
6
7
|
fn main() {}
const fn slice([a, b]: &[i32]) -> i32 { //~ ERROR refutable pattern in function argument
a + b //~ ERROR can only call other `const fn` within a `const fn`
//~^ ERROR use of possibly-uninitialized variable: `a`
//~| ERROR use of possibly-uninitialized variable: `b`
}
|