summaryrefslogtreecommitdiffstats
path: root/tests/ui/dropck/dropck-union.stderr
blob: 854e29385a81bcc04785808f7410b4110d4d3d97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0597]: `v` does not live long enough
  --> $DIR/dropck-union.rs:37:18
   |
LL |     v.0.set(Some(&v));
   |                  ^^ borrowed value does not live long enough
LL | }
   | -
   | |
   | `v` dropped here while still borrowed
   | borrow might be used here, when `v` is dropped and runs the `Drop` code for type `Wrap`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0597`.