rust/tests/ui/consts/const_let_refutable.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
121 B
Rust
Raw Normal View History

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