diff options
| author | Patrik Kårlin <patrik.karlin@gmail.com> | 2023-03-01 10:43:41 +0100 |
|---|---|---|
| committer | Patrik Kårlin <patrik.karlin@gmail.com> | 2023-03-30 14:55:03 +0200 |
| commit | d1b6aa6834744ec653a8de9f2f4ef25612e520e3 (patch) | |
| tree | ac3bebd58c5cc2d648c7c3eda1b9b25b5301d4bc | |
| parent | 2ee19c9c4c17d20d007a60c99166a073510addfb (diff) | |
| download | rust-d1b6aa6834744ec653a8de9f2f4ef25612e520e3.tar.gz rust-d1b6aa6834744ec653a8de9f2f4ef25612e520e3.zip | |
rustdoc: remove excess from rustdoc test
| -rw-r--r-- | tests/rustdoc-ui/mismatched_arg_count.rs | 4 | ||||
| -rw-r--r-- | 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 @@ type Alias<'a, T> = <T as Trait<'a>>::Assoc; 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> = <T as Trait<'a>>::Assoc; | ^^^^^ -- |
