]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dropck/dropck-union.nll.stderr
35d7ffc7879eda17de606b49ce2c53cff0615646
[rust.git] / src / test / ui / dropck / dropck-union.nll.stderr
1 error[E0597]: `v` does not live long enough
2   --> $DIR/dropck-union.rs:49:18
3    |
4 LL |     v.0.set(Some(&v)); //~ ERROR: `v` does not live long enough
5    |                  ^^ borrowed value does not live long enough
6 LL | }
7    | -
8    | |
9    | `v` dropped here while still borrowed
10    | borrow later used here, when `v` is dropped
11    |
12    = note: values in a scope are dropped in the opposite order they are defined
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0597`.