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) { | ^^