rustdoc: remove excess from rustdoc test

This commit is contained in:
Patrik Kårlin 2023-03-01 10:43:41 +01:00
parent 2ee19c9c4c
commit d1b6aa6834
No known key found for this signature in database
2 changed files with 2 additions and 6 deletions

View File

@ -1,5 +1,3 @@
// ensures that we don't ICE when there are too many args supplied to the alias.
trait Trait<'a> { trait Trait<'a> {
type Assoc; 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>) {} fn bar<'a, T: Trait<'a>>(_: Alias<'a, 'a, T>) {}
//~^ error: type alias takes 1 lifetime argument but 2 lifetime arguments were supplied //~^ error: type alias takes 1 lifetime argument but 2 lifetime arguments were supplied
fn main() {}

View File

@ -1,5 +1,5 @@
error[E0107]: type alias takes 1 lifetime argument but 2 lifetime arguments were supplied 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>) {} LL | fn bar<'a, T: Trait<'a>>(_: Alias<'a, 'a, T>) {}
| ^^^^^ -- help: remove this lifetime argument | ^^^^^ -- help: remove this lifetime argument
@ -7,7 +7,7 @@ LL | fn bar<'a, T: Trait<'a>>(_: Alias<'a, 'a, T>) {}
| expected 1 lifetime argument | expected 1 lifetime argument
| |
note: type alias defined here, with 1 lifetime parameter: `'a` 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; LL | type Alias<'a, T> = <T as Trait<'a>>::Assoc;
| ^^^^^ -- | ^^^^^ --