]> git.lizzy.rs Git - rust.git/blob - tests/ui/nll/issue-46036.stderr
core: Support variety of atomic widths in width-agnostic functions
[rust.git] / tests / ui / nll / issue-46036.stderr
1 error[E0597]: `a` does not live long enough
2   --> $DIR/issue-46036.rs:8:24
3    |
4 LL |     let foo = Foo { x: &a };
5    |                        ^^
6    |                        |
7    |                        borrowed value does not live long enough
8    |                        this usage requires that `a` is borrowed for `'static`
9 LL |     loop { }
10 LL | }
11    | - `a` 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`.