]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const_let_irrefutable.rs
Rollup merge of #83634 - JohnTitor:proc-macro-ice, r=varkor
[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 }