1 error[E0597]: `_t1` does not live long enough
2 --> $DIR/issue-54556-used-vs-unused-tails.rs:10:56
4 LL | { let mut _t1 = D(Box::new("t1")); D(&_t1).end() } ; // suggest `;`
5 | ^^^ - - borrowed value needs to live until here
7 | | `_t1` dropped here while still borrowed
8 | borrowed value does not live long enough
10 error[E0597]: `_t1` does not live long enough
11 --> $DIR/issue-54556-used-vs-unused-tails.rs:13:56
13 LL | { { let mut _t1 = D(Box::new("t1")); D(&_t1).end() } } ; // suggest `;`
14 | ^^^ - - borrowed value needs to live until here
16 | | `_t1` dropped here while still borrowed
17 | borrowed value does not live long enough
19 error[E0597]: `_t1` does not live long enough
20 --> $DIR/issue-54556-used-vs-unused-tails.rs:16:56
22 LL | { { let mut _t1 = D(Box::new("t1")); D(&_t1).end() }; } // suggest `;`
23 | ^^^ -- borrowed value needs to live until here
25 | | `_t1` dropped here while still borrowed
26 | borrowed value does not live long enough
28 error[E0597]: `_t1` does not live long enough
29 --> $DIR/issue-54556-used-vs-unused-tails.rs:19:56
31 LL | let _ = { let mut _t1 = D(Box::new("t1")); D(&_t1).end() } ; // suggest `;`
32 | ^^^ - - borrowed value needs to live until here
34 | | `_t1` dropped here while still borrowed
35 | borrowed value does not live long enough
37 error[E0597]: `_t1` does not live long enough
38 --> $DIR/issue-54556-used-vs-unused-tails.rs:22:56
40 LL | let _u = { let mut _t1 = D(Box::new("t1")); D(&_t1).unit() } ; // suggest `;`
41 | ^^^ - - borrowed value needs to live until here
43 | | `_t1` dropped here while still borrowed
44 | borrowed value does not live long enough
46 error[E0597]: `_t1` does not live long enough
47 --> $DIR/issue-54556-used-vs-unused-tails.rs:25:56
49 LL | let _x = { let mut _t1 = D(Box::new("t1")); D(&_t1).end() } ; // `let x = ...; x`
50 | ^^^ - - borrowed value needs to live until here
52 | | `_t1` dropped here while still borrowed
53 | borrowed value does not live long enough
55 error[E0597]: `_t1` does not live long enough
56 --> $DIR/issue-54556-used-vs-unused-tails.rs:30:56
58 LL | _y = { let mut _t1 = D(Box::new("t1")); D(&_t1).end() } ; // `let x = ...; x`
59 | ^^^ - - borrowed value needs to live until here
61 | | `_t1` dropped here while still borrowed
62 | borrowed value does not live long enough
64 error[E0597]: `_t1` does not live long enough
65 --> $DIR/issue-54556-used-vs-unused-tails.rs:37:56
67 LL | fn f_local_ref() { let mut _t1 = D(Box::new("t1")); D(&_t1).unit() } // suggest `;`
68 | ^^^ - `_t1` dropped here while still borrowed
70 | borrowed value does not live long enough
72 = note: values in a scope are dropped in the opposite order they are created
74 error[E0597]: `_t1` does not live long enough
75 --> $DIR/issue-54556-used-vs-unused-tails.rs:40:56
77 LL | fn f() -> String { let mut _t1 = D(Box::new("t1")); D(&_t1).end() } // `let x = ...; x`
78 | ^^^ - `_t1` dropped here while still borrowed
80 | borrowed value does not live long enough
82 = note: values in a scope are dropped in the opposite order they are created
84 error: aborting due to 9 previous errors
86 For more information about this error, try `rustc --explain E0597`.