]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-52663-span-decl-captured-variable.rs
Rollup merge of #56796 - KrishnaSannasi:try_from_impl_change, r=shepmaster
[rust.git] / src / test / ui / nll / issue-52663-span-decl-captured-variable.rs
1 #![feature(nll)]
2
3 fn expect_fn<F>(f: F) where F : Fn() {
4     f();
5 }
6
7 fn main() {
8    {
9        let x = (vec![22], vec![44]);
10        expect_fn(|| drop(x.0));
11        //~^ ERROR cannot move out of captured variable in an `Fn` closure [E0507]
12    }
13 }