rust/src/test/ui/regions/region-object-lifetime-5.stderr

14 lines
440 B
Plaintext

error[E0597]: `*x` does not live long enough
--> $DIR/region-object-lifetime-5.rs:21:5
|
LL | x.borrowed() //~ ERROR `*x` does not live long enough
| ^ borrowed value does not live long enough
LL | }
| - borrowed value only lives until here
|
= note: borrowed value must be valid for the static lifetime...
error: aborting due to previous error
For more information about this error, try `rustc --explain E0597`.