diff options
| author | lcnr <rust@lcnr.de> | 2025-01-20 16:42:30 +0100 |
|---|---|---|
| committer | JJ_EMPTY_STRING <JJ_EMPTY_STRING> | 2025-01-30 11:56:29 +0100 |
| commit | fef480f4b890ae50dc818036fc0900238e5339b2 (patch) | |
| tree | b65a261c996cb46bcf280381e2997c06df20ab75 | |
| parent | 12f86ee7f32efe58eab175a4fe89b30b2068fa3e (diff) | |
| download | rust-fef480f4b890ae50dc818036fc0900238e5339b2.tar.gz rust-fef480f4b890ae50dc818036fc0900238e5339b2.zip | |
error pattern to correct line
| -rw-r--r-- | tests/ui/generic-associated-types/issue-90014-tait2.rs | 3 | ||||
| -rw-r--r-- | tests/ui/generic-associated-types/issue-90014-tait2.stderr | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/ui/generic-associated-types/issue-90014-tait2.rs b/tests/ui/generic-associated-types/issue-90014-tait2.rs index ef54a89aaae..3f7a9ff63c3 100644 --- a/tests/ui/generic-associated-types/issue-90014-tait2.rs +++ b/tests/ui/generic-associated-types/issue-90014-tait2.rs @@ -3,8 +3,6 @@ //! Unfortunately we don't even reach opaque type collection, as we ICE in typeck before that. //! See #109281 for the original report. //@ edition:2018 -//@ error-pattern: expected generic lifetime parameter, found `'a` - #![feature(type_alias_impl_trait)] use std::future::Future; @@ -24,6 +22,7 @@ impl<'x, T: 'x> Trait<'x> for (T,) { impl Foo<'_> { fn make_fut(&self) -> Box<dyn for<'a> Trait<'a, Thing = Fut<'a>>> { Box::new((async { () },)) + //~^ ERROR expected generic lifetime parameter, found `'a` } } diff --git a/tests/ui/generic-associated-types/issue-90014-tait2.stderr b/tests/ui/generic-associated-types/issue-90014-tait2.stderr index be6f4272ce1..aa427d42649 100644 --- a/tests/ui/generic-associated-types/issue-90014-tait2.stderr +++ b/tests/ui/generic-associated-types/issue-90014-tait2.stderr @@ -1,5 +1,5 @@ error[E0792]: expected generic lifetime parameter, found `'a` - --> $DIR/issue-90014-tait2.rs:26:9 + --> $DIR/issue-90014-tait2.rs:24:9 | LL | type Fut<'a> = impl Future<Output = ()>; | -- this generic parameter must be used with a generic lifetime parameter |
