]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-move-by-capture-ok.rs
Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup
[rust.git] / src / test / ui / borrowck / borrowck-move-by-capture-ok.rs
1 // run-pass
2
3 pub fn main() {
4     let bar: Box<_> = Box::new(3);
5     let h = || -> isize { *bar };
6     assert_eq!(h(), 3);
7 }