summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-10682.rs
blob: afaa90f05caa1757fe7771c0f6a4adc45b84a957 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-pass
// Regression test for issue #10682
// Nested `proc` usage can't use outer owned data

// pretty-expanded FIXME #23616

#![feature(box_syntax)]

fn work(_: Box<isize>) {}
fn foo<F:FnOnce()>(_: F) {}

pub fn main() {
  let a = box 1;
  foo(move|| { foo(move|| { work(a) }) })
}