]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/promoted-bounds.stderr
fix merge conflicts
[rust.git] / src / test / ui / nll / promoted-bounds.stderr
1 error[E0597]: `l` does not live long enough
2   --> $DIR/promoted-bounds.rs:19:17
3    |
4 LL |     let ptr = {
5    |         --- borrow later stored here
6 LL |         let l = 3;
7 LL |         let b = &l;
8    |                 ^^ borrowed value does not live long enough
9 ...
10 LL |     };
11    |     - `l` dropped here while still borrowed
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0597`.