Skip to content

Commit 05c1b89

Browse files
committed
rename test case
the 3 is because the type arguments are in the 3rd position
1 parent 016ccf8 commit 05c1b89

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/test/ui/nll/user-annotations/method-ufcs.stderr renamed to src/test/ui/nll/user-annotations/method-ufcs-3.stderr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0597]: `c` does not live long enough
2-
--> $DIR/method-ufcs.rs:48:53
2+
--> $DIR/method-ufcs-3.rs:48:53
33
|
44
LL | <_ as Bazoom<_>>::method::<&'static u32>(&a, b, &c); //~ ERROR
55
| ^^ borrowed value does not live long enough
@@ -9,29 +9,29 @@ LL | }
99
= note: borrowed value must be valid for the static lifetime...
1010

1111
error[E0597]: `c` does not live long enough
12-
--> $DIR/method-ufcs.rs:55:48
12+
--> $DIR/method-ufcs-3.rs:55:48
1313
|
1414
LL | <_ as Bazoom<_>>::method::<&'a u32>(&a, b, &c); //~ ERROR
1515
| ^^ borrowed value does not live long enough
1616
LL | }
1717
| - `c` dropped here while still borrowed
1818
|
1919
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
2121
|
2222
LL | fn annot_reference_named_lifetime<'a>(_d: &'a u32) {
2323
| ^^
2424

2525
error[E0597]: `c` does not live long enough
26-
--> $DIR/method-ufcs.rs:69:52
26+
--> $DIR/method-ufcs-3.rs:69:52
2727
|
2828
LL | <_ as Bazoom<_>>::method::<&'a u32>(&a, b, &c); //~ ERROR
2929
| ^^ borrowed value does not live long enough
3030
LL | };
3131
| - `c` dropped here while still borrowed
3232
|
3333
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
3535
|
3636
LL | fn annot_reference_named_lifetime_in_closure<'a>(_: &'a u32) {
3737
| ^^

0 commit comments

Comments
 (0)