From 05c1b89308dc92cf05deb6bc3c051346006be80c Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Thu, 9 Aug 2018 12:25:01 -0400 Subject: [PATCH] rename test case the 3 is because the type arguments are in the 3rd position --- .../{method-ufcs.rs => method-ufcs-3.rs} | 0 .../{method-ufcs.stderr => method-ufcs-3.stderr} | 10 +++++----- 2 files changed, 5 insertions(+), 5 deletions(-) rename src/test/ui/nll/user-annotations/{method-ufcs.rs => method-ufcs-3.rs} (100%) rename src/test/ui/nll/user-annotations/{method-ufcs.stderr => method-ufcs-3.stderr} (89%) diff --git a/src/test/ui/nll/user-annotations/method-ufcs.rs b/src/test/ui/nll/user-annotations/method-ufcs-3.rs similarity index 100% rename from src/test/ui/nll/user-annotations/method-ufcs.rs rename to src/test/ui/nll/user-annotations/method-ufcs-3.rs diff --git a/src/test/ui/nll/user-annotations/method-ufcs.stderr b/src/test/ui/nll/user-annotations/method-ufcs-3.stderr similarity index 89% rename from src/test/ui/nll/user-annotations/method-ufcs.stderr rename to src/test/ui/nll/user-annotations/method-ufcs-3.stderr index 4299c8a4c13..7ddea3eb2c6 100644 --- a/src/test/ui/nll/user-annotations/method-ufcs.stderr +++ b/src/test/ui/nll/user-annotations/method-ufcs-3.stderr @@ -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) { | ^^