mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-14 21:40:58 +00:00
13 lines
239 B
Rust
13 lines
239 B
Rust
//@ run-pass
|
|
// Regression test for issue #10682
|
|
// Nested `proc` usage can't use outer owned data
|
|
|
|
|
|
fn work(_: Box<isize>) {}
|
|
fn foo<F:FnOnce()>(_: F) {}
|
|
|
|
pub fn main() {
|
|
let a = Box::new(1);
|
|
foo(move|| { foo(move|| { work(a) }) })
|
|
}
|