]> git.proxmox.com Git - rustc.git/blame - src/test/ui/nll/user-annotations/method-ufcs-inherent-3.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / nll / user-annotations / method-ufcs-inherent-3.stderr
CommitLineData
0bf4aa26 1error[E0597]: `v` does not live long enough
923072b8 2 --> $DIR/method-ufcs-inherent-3.rs:14:26
0bf4aa26
XL
3 |
4LL | fn foo<'a>() {
5 | -- lifetime `'a` defined here
6LL | let v = 22;
7LL | let x = <A<'a>>::new(&v, 22);
8 | -------------^^-----
9 | | |
10 | | borrowed value does not live long enough
11 | argument requires that `v` is borrowed for `'a`
532ac7d7 12LL |
0bf4aa26
XL
13LL | }
14 | - `v` dropped here while still borrowed
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0597`.