rust/tests/ui/nll/issue-46036.stderr
2023-01-11 09:32:08 +00:00

16 lines
505 B
Plaintext

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`.