]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-36082.ast.nll.stderr
Rollup merge of #52946 - Ajacmac:doc-impl-from, r=GuillaumeGomez
[rust.git] / src / test / ui / issues / issue-36082.ast.nll.stderr
1 error[E0597]: borrowed value does not live long enough
2   --> $DIR/issue-36082.rs:23:19
3    |
4 LL |     let val: &_ = x.borrow().0;
5    |                   ^^^^^^^^^^  - temporary value only lives until here
6    |                   |
7    |                   temporary value does not live long enough
8 ...
9 LL |     println!("{}", val);
10    |                    --- borrow later used here
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0597`.