]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-69114-static-ty.stderr
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / nll / issue-69114-static-ty.stderr
1 error[E0597]: `n` does not live long enough
2   --> $DIR/issue-69114-static-ty.rs:7:9
3    |
4 LL |     FOO(&n);
5    |     ----^^-
6    |     |   |
7    |     |   borrowed value does not live long enough
8    |     argument requires that `n` is borrowed for `'static`
9 LL |
10 LL | }
11    | - `n` 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`.