]> git.proxmox.com Git - rustc.git/blob - src/test/ui/span/loan-extend.stderr
New upstream version 1.14.0+dfsg1
[rustc.git] / src / test / ui / span / loan-extend.stderr
1 error: `short` does not live long enough
2 --> $DIR/loan-extend.rs:21:1
3 |
4 19 | long = borrow(&mut short);
5 | ----- borrow occurs here
6 20 | //~^ NOTE borrow occurs here
7 21 | }
8 | ^ `short` dropped here while still borrowed
9 |
10 = note: values in a scope are dropped in the opposite order they are created
11
12 error: aborting due to previous error
13