]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-69114-static-mut-ty.stderr
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / nll / issue-69114-static-mut-ty.stderr
1 error[E0597]: `n` does not live long enough
2   --> $DIR/issue-69114-static-mut-ty.rs:19:15
3    |
4 LL |         BAR = &n;
5    |         ------^^
6    |         |     |
7    |         |     borrowed value does not live long enough
8    |         assignment requires that `n` is borrowed for `'static`
9 ...
10 LL | }
11    | - `n` dropped here while still borrowed
12
13 error[E0597]: `n` does not live long enough
14   --> $DIR/issue-69114-static-mut-ty.rs:27:22
15    |
16 LL |         BAR_ELIDED = &n;
17    |         -------------^^
18    |         |            |
19    |         |            borrowed value does not live long enough
20    |         assignment requires that `n` is borrowed for `'static`
21 ...
22 LL | }
23    | - `n` dropped here while still borrowed
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0597`.