]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const_let_irrefutable.rs
Merge commit 'cb7915b00c235e9b5861564f3be78dba330980ee' into clippyup
[rust.git] / src / test / ui / consts / const_let_irrefutable.rs
1 // build-pass (FIXME(62277): could be check-pass?)
2
3 fn main() {}
4
5 const fn tup((a, b): (i32, i32)) -> i32 {
6     a + b
7 }
8
9 const fn array([a, b]: [i32; 2]) -> i32 {
10     a + b
11 }