]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-10682.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-10682.rs
1 // run-pass
2 // Regression test for issue #10682
3 // Nested `proc` usage can't use outer owned data
4
5 // pretty-expanded FIXME #23616
6
7 fn work(_: Box<isize>) {}
8 fn foo<F:FnOnce()>(_: F) {}
9
10 pub fn main() {
11   let a = Box::new(1);
12   foo(move|| { foo(move|| { work(a) }) })
13 }