Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 289 Bytes
// 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) }) })
}
You can’t perform that action at this time.