mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
rustdoc: remove excess from rustdoc test
This commit is contained in:
parent
2ee19c9c4c
commit
d1b6aa6834
@ -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() {}
|
|
||||||
|
@ -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;
|
||||||
| ^^^^^ --
|
| ^^^^^ --
|
||||||
|
Loading…
Reference in New Issue
Block a user