Skip to content

Commit d1b6aa6

Browse files
committed
rustdoc: remove excess from rustdoc test
1 parent 2ee19c9 commit d1b6aa6

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// ensures that we don't ICE when there are too many args supplied to the alias.
2-
31
trait Trait<'a> {
42
type Assoc;
53
}
@@ -8,5 +6,3 @@ type Alias<'a, T> = <T as Trait<'a>>::Assoc;
86

97
fn bar<'a, T: Trait<'a>>(_: Alias<'a, 'a, T>) {}
108
//~^ error: type alias takes 1 lifetime argument but 2 lifetime arguments were supplied
11-
12-
fn main() {}

tests/rustdoc-ui/mismatched_arg_count.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error[E0107]: type alias takes 1 lifetime argument but 2 lifetime arguments were supplied
2-
--> $DIR/mismatched_arg_count.rs:9:29
2+
--> $DIR/mismatched_arg_count.rs:7:29
33
|
44
LL | fn bar<'a, T: Trait<'a>>(_: Alias<'a, 'a, T>) {}
55
| ^^^^^ -- help: remove this lifetime argument
66
| |
77
| expected 1 lifetime argument
88
|
99
note: type alias defined here, with 1 lifetime parameter: `'a`
10-
--> $DIR/mismatched_arg_count.rs:7:6
10+
--> $DIR/mismatched_arg_count.rs:5:6
1111
|
1212
LL | type Alias<'a, T> = <T as Trait<'a>>::Assoc;
1313
| ^^^^^ --

0 commit comments

Comments
 (0)