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