fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0597]: `b` does not live long enough 2 --> $DIR/ref-escapes-but-not-over-yield.rs:11:13 3 | 4LL | let mut b = move || { 5 | _________________- 6LL | | yield(); 7LL | | let b = 5; 8LL | | a = &b; 9 | | ^^ borrowed value does not live long enough 10LL | | 11LL | | }; 12 | | - 13 | | | 14 | | `b` dropped here while still borrowed 15 | |_____... and the borrow might be used here, when that temporary is dropped and runs the destructor for generator 16 | a temporary with access to the borrow is created here ... 17 18error: aborting due to previous error 19 20For more information about this error, try `rustc --explain E0597`.