]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dropck/dropck-union.stderr
Move some tests with compare-mode=nll output to revisions
[rust.git] / src / test / ui / dropck / dropck-union.stderr
1 error[E0597]: `v` does not live long enough
2   --> $DIR/dropck-union.rs:37:18
3    |
4 LL |     v.0.set(Some(&v));
5    |                  ^^ borrowed value does not live long enough
6 LL | }
7    | -
8    | |
9    | `v` dropped here while still borrowed
10    | borrow might be used here, when `v` is dropped and runs the `Drop` code for type `Wrap`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0597`.