rust/tests/ui/generator/issue-48048.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
203 B
Rust
Raw Normal View History

#![feature(generators)]
fn main() {
let x = (|_| {},);
|| {
let x = x;
x.0({ //~ ERROR borrow may still be in use when generator yields
yield;
});
};
}