]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generator/ref-escapes-but-not-over-yield.nll.stderr
Skip checking for unused mutable locals that have no name
[rust.git] / src / test / ui / generator / ref-escapes-but-not-over-yield.nll.stderr
1 error[E0597]: `b` does not live long enough
2   --> $DIR/ref-escapes-but-not-over-yield.rs:24:13
3    |
4 LL |         a = &b;
5    |             ^^ borrowed value does not live long enough
6 LL |         //~^ ERROR `b` does not live long enough
7 LL |     };
8    |     - borrowed value only lives until here
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0597`.