From d1b6aa6834744ec653a8de9f2f4ef25612e520e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20K=C3=A5rlin?= Date: Wed, 1 Mar 2023 10:43:41 +0100 Subject: [PATCH] rustdoc: remove excess from rustdoc test --- tests/rustdoc-ui/mismatched_arg_count.rs | 4 ---- tests/rustdoc-ui/mismatched_arg_count.stderr | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/rustdoc-ui/mismatched_arg_count.rs b/tests/rustdoc-ui/mismatched_arg_count.rs index 792563fd82b..7841442987b 100644 --- a/tests/rustdoc-ui/mismatched_arg_count.rs +++ b/tests/rustdoc-ui/mismatched_arg_count.rs @@ -1,5 +1,3 @@ -// ensures that we don't ICE when there are too many args supplied to the alias. - trait Trait<'a> { type Assoc; } @@ -8,5 +6,3 @@ trait Trait<'a> { fn bar<'a, T: Trait<'a>>(_: Alias<'a, 'a, T>) {} //~^ error: type alias takes 1 lifetime argument but 2 lifetime arguments were supplied - -fn main() {} diff --git a/tests/rustdoc-ui/mismatched_arg_count.stderr b/tests/rustdoc-ui/mismatched_arg_count.stderr index de58a014ee8..7e88ce954ac 100644 --- a/tests/rustdoc-ui/mismatched_arg_count.stderr +++ b/tests/rustdoc-ui/mismatched_arg_count.stderr @@ -1,5 +1,5 @@ error[E0107]: type alias takes 1 lifetime argument but 2 lifetime arguments were supplied - --> $DIR/mismatched_arg_count.rs:9:29 + --> $DIR/mismatched_arg_count.rs:7:29 | LL | fn bar<'a, T: Trait<'a>>(_: Alias<'a, 'a, T>) {} | ^^^^^ -- help: remove this lifetime argument @@ -7,7 +7,7 @@ LL | fn bar<'a, T: Trait<'a>>(_: Alias<'a, 'a, T>) {} | expected 1 lifetime argument | note: type alias defined here, with 1 lifetime parameter: `'a` - --> $DIR/mismatched_arg_count.rs:7:6 + --> $DIR/mismatched_arg_count.rs:5:6 | LL | type Alias<'a, T> = >::Assoc; | ^^^^^ --