summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/issue-46036.stderr
blob: e6e95ee613647a1cff34d4d4479a73ab32e75162 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0597]: `a` does not live long enough
  --> $DIR/issue-46036.rs:8:24
   |
LL |     let foo = Foo { x: &a };
   |                        ^^
   |                        |
   |                        borrowed value does not live long enough
   |                        this usage requires that `a` is borrowed for `'static`
LL |     loop { }
LL | }
   | - `a` dropped here while still borrowed

error: aborting due to previous error

For more information about this error, try `rustc --explain E0597`.