1 // run-pass
2 // Tests multiple free variables being passed by value into an unboxed
3 // once closure as an optimization by codegen. This used to hit an
4 // incorrect assert.
5
main()6 fn main() {
7 let x = 2u8;
8 let y = 3u8;
9 assert_eq!((move || x + y)(), 5);
10 }
11