From e2deef32d4a2f07249c567534528d5264ba0a160 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 25 Sep 2018 11:32:58 -0400 Subject: [PATCH] pacify the mercilous tidy. --- ...jection-where-clause-env-wrong-lifetime.nll.stderr | 11 +++++++++++ .../projection-where-clause-env-wrong-lifetime.rs | 3 ++- .../projection-where-clause-env-wrong-lifetime.stderr | 4 ++-- 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-lifetime.nll.stderr diff --git a/src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-lifetime.nll.stderr b/src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-lifetime.nll.stderr new file mode 100644 index 00000000000..1e953ecff69 --- /dev/null +++ b/src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-lifetime.nll.stderr @@ -0,0 +1,11 @@ +error[E0309]: the associated type `>::Output` may not live long enough + --> $DIR/projection-where-clause-env-wrong-lifetime.rs:14:5 + | +LL | bar::<>::Output>() + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = help: consider adding an explicit lifetime bound `>::Output: 'a`... + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0309`. diff --git a/src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-lifetime.rs b/src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-lifetime.rs index 07cc37a8b29..9e3590ca715 100644 --- a/src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-lifetime.rs +++ b/src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-lifetime.rs @@ -11,7 +11,8 @@ fn foo1<'a, 'b, T>() -> &'a () for<'x> T: MyTrait<'x>, >::Output: 'a, { - bar::<>::Output>() //~ ERROR the associated type `>::Output` may not live long enough + bar::<>::Output>() + //~^ ERROR the associated type `>::Output` may not live long enough } fn bar<'a, T>() -> &'a () diff --git a/src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-lifetime.stderr b/src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-lifetime.stderr index c6d0037138c..d6ade2a603e 100644 --- a/src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-lifetime.stderr +++ b/src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-lifetime.stderr @@ -1,14 +1,14 @@ error[E0309]: the associated type `>::Output` may not live long enough --> $DIR/projection-where-clause-env-wrong-lifetime.rs:14:5 | -LL | bar::<>::Output>() //~ ERROR the associated type `>::Output` may not live long enough +LL | bar::<>::Output>() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: consider adding an explicit lifetime bound `>::Output: 'a`... note: ...so that the type `>::Output` will meet its required lifetime bounds --> $DIR/projection-where-clause-env-wrong-lifetime.rs:14:5 | -LL | bar::<>::Output>() //~ ERROR the associated type `>::Output` may not live long enough +LL | bar::<>::Output>() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to previous error -- 2.44.0