fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error[E0597]: `young[_]` does not live long enough 2 --> $DIR/borrowck-let-suggestion-suffixes.rs:12:17 3 | 4LL | v2.push(&young[0]); // statement 4 5 | ^^^^^^^^^ borrowed value does not live long enough 6... 7LL | } 8 | - `young[_]` dropped here while still borrowed 9... 10LL | (v1, v2, v3, /* v4 is above. */ v5).use_ref(); 11 | -- borrow later used here 12 13error[E0716]: temporary value dropped while borrowed 14 --> $DIR/borrowck-let-suggestion-suffixes.rs:19:14 15 | 16LL | v3.push(&id('x')); // statement 6 17 | ^^^^^^^ - temporary value is freed at the end of this statement 18 | | 19 | creates a temporary which is freed while still in use 20... 21LL | (v1, v2, v3, /* v4 is above. */ v5).use_ref(); 22 | -- borrow later used here 23 | 24 = note: consider using a `let` binding to create a longer lived value 25 26error[E0716]: temporary value dropped while borrowed 27 --> $DIR/borrowck-let-suggestion-suffixes.rs:29:18 28 | 29LL | v4.push(&id('y')); 30 | ^^^^^^^ - temporary value is freed at the end of this statement 31 | | 32 | creates a temporary which is freed while still in use 33... 34LL | v4.use_ref(); 35 | -- borrow later used here 36 | 37 = note: consider using a `let` binding to create a longer lived value 38 39error[E0716]: temporary value dropped while borrowed 40 --> $DIR/borrowck-let-suggestion-suffixes.rs:40:14 41 | 42LL | v5.push(&id('z')); 43 | ^^^^^^^ - temporary value is freed at the end of this statement 44 | | 45 | creates a temporary which is freed while still in use 46... 47LL | (v1, v2, v3, /* v4 is above. */ v5).use_ref(); 48 | -- borrow later used here 49 | 50 = note: consider using a `let` binding to create a longer lived value 51 52error: aborting due to 4 previous errors 53 54Some errors have detailed explanations: E0597, E0716. 55For more information about an error, try `rustc --explain E0597`.