]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-52663-trait-object.stderr
Rollup merge of #105216 - GuillaumeGomez:rm-unused-gui-test, r=notriddle
[rust.git] / src / test / ui / nll / issue-52663-trait-object.stderr
1 error[E0597]: `tmp0` does not live long enough
2   --> $DIR/issue-52663-trait-object.rs:12:20
3    |
4 LL |         let tmp1 = &tmp0;
5    |                    ^^^^^ borrowed value does not live long enough
6 LL |         Box::new(tmp1) as Box<dyn Foo + '_>
7    |         ----------------------------------- borrow later captured here by trait object
8 LL |     };
9    |     - `tmp0` dropped here while still borrowed
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0597`.