mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
13 lines
272 B
Rust
13 lines
272 B
Rust
//@ run-pass
|
|
// Regression test for issue #10682
|
|
// Nested `proc` usage can't use outer owned data
|
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
fn work(_: Box<isize>) {}
|
|
fn foo<F:FnOnce()>(_: F) {}
|
|
|
|
pub fn main() {
|
|
let a = Box::new(1);
|
|
foo(move|| { foo(move|| { work(a) }) })
|
|
}
|