|
1 | 1 | error[E0597]: `c` does not live long enough
|
2 |
| - --> $DIR/method-ufcs.rs:48:53 |
| 2 | + --> $DIR/method-ufcs-3.rs:48:53 |
3 | 3 | |
|
4 | 4 | LL | <_ as Bazoom<_>>::method::<&'static u32>(&a, b, &c); //~ ERROR
|
5 | 5 | | ^^ borrowed value does not live long enough
|
|
9 | 9 | = note: borrowed value must be valid for the static lifetime...
|
10 | 10 |
|
11 | 11 | error[E0597]: `c` does not live long enough
|
12 |
| - --> $DIR/method-ufcs.rs:55:48 |
| 12 | + --> $DIR/method-ufcs-3.rs:55:48 |
13 | 13 | |
|
14 | 14 | LL | <_ as Bazoom<_>>::method::<&'a u32>(&a, b, &c); //~ ERROR
|
15 | 15 | | ^^ borrowed value does not live long enough
|
16 | 16 | LL | }
|
17 | 17 | | - `c` dropped here while still borrowed
|
18 | 18 | |
|
19 | 19 | note: borrowed value must be valid for the lifetime 'a as defined on the function body at 51:35...
|
20 |
| - --> $DIR/method-ufcs.rs:51:35 |
| 20 | + --> $DIR/method-ufcs-3.rs:51:35 |
21 | 21 | |
|
22 | 22 | LL | fn annot_reference_named_lifetime<'a>(_d: &'a u32) {
|
23 | 23 | | ^^
|
24 | 24 |
|
25 | 25 | error[E0597]: `c` does not live long enough
|
26 |
| - --> $DIR/method-ufcs.rs:69:52 |
| 26 | + --> $DIR/method-ufcs-3.rs:69:52 |
27 | 27 | |
|
28 | 28 | LL | <_ as Bazoom<_>>::method::<&'a u32>(&a, b, &c); //~ ERROR
|
29 | 29 | | ^^ borrowed value does not live long enough
|
30 | 30 | LL | };
|
31 | 31 | | - `c` dropped here while still borrowed
|
32 | 32 | |
|
33 | 33 | note: borrowed value must be valid for the lifetime 'a as defined on the function body at 64:46...
|
34 |
| - --> $DIR/method-ufcs.rs:64:46 |
| 34 | + --> $DIR/method-ufcs-3.rs:64:46 |
35 | 35 | |
|
36 | 36 | LL | fn annot_reference_named_lifetime_in_closure<'a>(_: &'a u32) {
|
37 | 37 | | ^^
|
|
0 commit comments