aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/closure_move_expr.rs
blob: 780c316e0af28f7ff3c1a3355a7a98e0fa104ca8 (plain)
1
2
3
4
5
6
7
8
9
// { dg-additional-options "-fsyntax-only" }

fn foo() {
    move |l: u32, r: u32| l + r
}

fn foo2() {
    |l: u32, r: u32| l + r
}