blob: 35d7ffc7879eda17de606b49ce2c53cff0615646 [file] [log] [blame]
error[E0597]: `v` does not live long enough
--> $DIR/dropck-union.rs:49:18
|
LL | v.0.set(Some(&v)); //~ ERROR: `v` does not live long enough
| ^^ borrowed value does not live long enough
LL | }
| -
| |
| `v` dropped here while still borrowed
| borrow later used here, when `v` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error: aborting due to previous error
For more information about this error, try `rustc --explain E0597`.