fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
540 B16 linesraw
1error[E0597]: `v` does not live long enough
2  --> $DIR/dropck-union.rs:37:18
3   |
4LL |     let v : Wrap<C> = Wrap::new(C(Cell::new(None)));
5   |         - binding `v` declared here
6LL |     v.0.set(Some(&v));
7   |                  ^^ borrowed value does not live long enough
8LL | }
9   | -
10   | |
11   | `v` dropped here while still borrowed
12   | borrow might be used here, when `v` is dropped and runs the `Drop` code for type `Wrap`
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0597`.