fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0597]: `first_dropped` does not live long enough 2 --> $DIR/issue28498-reject-passed-to-fn.rs:34:19 3 | 4LL | let (foo1, first_dropped); 5 | ------------- binding `first_dropped` declared here 6... 7LL | foo1 = Foo(1, &first_dropped, Box::new(callback)); 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`.