]> git.proxmox.com Git - rustc.git/blob - tests/rustdoc-ui/mismatched_arg_count.stderr
New upstream version 1.73.0+dfsg1
[rustc.git] / tests / rustdoc-ui / mismatched_arg_count.stderr
1 error[E0107]: type alias takes 1 lifetime argument but 2 lifetime arguments were supplied
2 --> $DIR/mismatched_arg_count.rs:7:29
3 |
4 LL | fn bar<'a, T: Trait<'a>>(_: Alias<'a, 'a, T>) {}
5 | ^^^^^ -- help: remove this lifetime argument
6 | |
7 | expected 1 lifetime argument
8 |
9 note: type alias defined here, with 1 lifetime parameter: `'a`
10 --> $DIR/mismatched_arg_count.rs:5:6
11 |
12 LL | type Alias<'a, T> = <T as Trait<'a>>::Assoc;
13 | ^^^^^ --
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0107`.