]> git.proxmox.com Git - rustc.git/blame - src/test/ui/nll/issue-31567.stderr
New upstream version 1.31.0~beta.4+dfsg1
[rustc.git] / src / test / ui / nll / issue-31567.stderr
CommitLineData
0bf4aa26 1error[E0713]: borrow may still be in use when destructor runs
0531ce1d
XL
2 --> $DIR/issue-31567.rs:22:26
3 |
0bf4aa26
XL
4LL | fn get_dangling<'a>(v: VecWrapper<'a>) -> &'a u32 {
5 | -- lifetime `'a` defined here
6LL | let s_inner: &'a S = &*v.0; //~ ERROR borrow may still be in use when destructor runs [E0713]
7 | ----- ^^^^^
8 | |
9 | type annotation requires that `*v.0` is borrowed for `'a`
0531ce1d
XL
10LL | &s_inner.0
11LL | }
0bf4aa26 12 | - here, drop of `v` needs exclusive access to `*v.0`, because the type `VecWrapper<'_>` implements the `Drop` trait
0531ce1d
XL
13
14error: aborting due to previous error
15
0bf4aa26 16For more information about this error, try `rustc --explain E0713`.