rename test case

the 3 is because the type arguments are in the 3rd position
This commit is contained in:
Niko Matsakis 2018-08-09 12:25:01 -04:00
parent 016ccf8e6e
commit 05c1b89308
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
error[E0597]: `c` does not live long enough
--> $DIR/method-ufcs.rs:48:53
--> $DIR/method-ufcs-3.rs:48:53
|
LL | <_ as Bazoom<_>>::method::<&'static u32>(&a, b, &c); //~ ERROR
| ^^ borrowed value does not live long enough
@ -9,7 +9,7 @@ LL | }
= note: borrowed value must be valid for the static lifetime...
error[E0597]: `c` does not live long enough
--> $DIR/method-ufcs.rs:55:48
--> $DIR/method-ufcs-3.rs:55:48
|
LL | <_ as Bazoom<_>>::method::<&'a u32>(&a, b, &c); //~ ERROR
| ^^ borrowed value does not live long enough
@ -17,13 +17,13 @@ LL | }
| - `c` dropped here while still borrowed
|
note: borrowed value must be valid for the lifetime 'a as defined on the function body at 51:35...
--> $DIR/method-ufcs.rs:51:35
--> $DIR/method-ufcs-3.rs:51:35
|
LL | fn annot_reference_named_lifetime<'a>(_d: &'a u32) {
| ^^
error[E0597]: `c` does not live long enough
--> $DIR/method-ufcs.rs:69:52
--> $DIR/method-ufcs-3.rs:69:52
|
LL | <_ as Bazoom<_>>::method::<&'a u32>(&a, b, &c); //~ ERROR
| ^^ borrowed value does not live long enough
@ -31,7 +31,7 @@ LL | };
| - `c` dropped here while still borrowed
|
note: borrowed value must be valid for the lifetime 'a as defined on the function body at 64:46...
--> $DIR/method-ufcs.rs:64:46
--> $DIR/method-ufcs-3.rs:64:46
|
LL | fn annot_reference_named_lifetime_in_closure<'a>(_: &'a u32) {
| ^^