]> git.lizzy.rs Git - rust.git/blob - src/test/ui/late-bound-lifetimes/mismatched_arg_count.stderr
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / late-bound-lifetimes / mismatched_arg_count.stderr
1 error[E0107]: this type alias takes 1 lifetime argument but 2 lifetime arguments were supplied
2   --> $DIR/mismatched_arg_count.rs:9: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:7: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`.