fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
500 B13 linesraw
1error[E0597]: `tmp0` does not live long enough
2  --> $DIR/issue-52663-trait-object.rs:12:20
3   |
4LL |         let tmp1 = &tmp0;
5   |                    ^^^^^ borrowed value does not live long enough
6LL |         box tmp1 as Box<dyn Foo + '_>
7   |         ----------------------------- borrow later captured here by trait object
8LL |     };
9   |     - `tmp0` dropped here while still borrowed
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0597`.