fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0597]: `d1` does not live long enough 2 --> $DIR/issue-24805-dropck-trait-has-items.rs:37:26 3 | 4LL | let (_d, d1); 5 | -- binding `d1` declared here 6LL | d1 = D_HasSelfMethod(1); 7LL | _d = D_HasSelfMethod(&d1); 8 | ^^^ borrowed value does not live long enough 9LL | } 10 | - 11 | | 12 | `d1` dropped here while still borrowed 13 | borrow might be used here, when `_d` is dropped and runs the `Drop` code for type `D_HasSelfMethod` 14 | 15 = note: values in a scope are dropped in the opposite order they are defined 16 17error[E0597]: `d1` does not live long enough 18 --> $DIR/issue-24805-dropck-trait-has-items.rs:43:33 19 | 20LL | let (_d, d1); 21 | -- binding `d1` declared here 22LL | d1 = D_HasMethodWithSelfArg(1); 23LL | _d = D_HasMethodWithSelfArg(&d1); 24 | ^^^ borrowed value does not live long enough 25LL | } 26 | - 27 | | 28 | `d1` dropped here while still borrowed 29 | borrow might be used here, when `_d` is dropped and runs the `Drop` code for type `D_HasMethodWithSelfArg` 30 | 31 = note: values in a scope are dropped in the opposite order they are defined 32 33error[E0597]: `d1` does not live long enough 34 --> $DIR/issue-24805-dropck-trait-has-items.rs:49:20 35 | 36LL | let (_d, d1); 37 | -- binding `d1` declared here 38LL | d1 = D_HasType(1); 39LL | _d = D_HasType(&d1); 40 | ^^^ borrowed value does not live long enough 41LL | } 42 | - 43 | | 44 | `d1` dropped here while still borrowed 45 | borrow might be used here, when `_d` is dropped and runs the `Drop` code for type `D_HasType` 46 | 47 = note: values in a scope are dropped in the opposite order they are defined 48 49error: aborting due to 3 previous errors 50 51For more information about this error, try `rustc --explain E0597`.