]> git.proxmox.com Git - rustc.git/blame - src/test/ui/span/regions-infer-borrow-scope-within-loop.stderr
New upstream version 1.20.0+dfsg1
[rustc.git] / src / test / ui / span / regions-infer-borrow-scope-within-loop.stderr
CommitLineData
7cac9316 1error[E0597]: `*x` does not live long enough
c30ab7b3
SL
2 --> $DIR/regions-infer-borrow-scope-within-loop.rs:28:5
3 |
424 | y = borrow(&*x); //~ ERROR `*x` does not live long enough
5 | -- borrow occurs here
6...
728 | }
8 | ^ `*x` dropped here while still borrowed
929 | assert!(*y != 0);
1030 | }
11 | - borrowed value needs to live until here
12
041b39d2 13error: aborting due to previous error
c30ab7b3 14