fork/rust

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

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

master
713 B20 linesraw
1error[E0597]: `first_dropped` does not live long enough
2  --> $DIR/issue28498-reject-lifetime-param.rs:32:19
3   |
4LL |     let (foo1, first_dropped);
5   |                ------------- binding `first_dropped` declared here
6...
7LL |     foo1 = Foo(1, &first_dropped);
8   |                   ^^^^^^^^^^^^^^ borrowed value does not live long enough
9...
10LL | }
11   | -
12   | |
13   | `first_dropped` dropped here while still borrowed
14   | borrow might be used here, when `foo1` is dropped and runs the `Drop` code for type `Foo`
15   |
16   = note: values in a scope are dropped in the opposite order they are defined
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0597`.