1 error[E0107]: this struct takes 1 lifetime argument but 2 lifetime arguments were supplied
2 --> $DIR/generic-arg-mismatch-recover.rs:6:5
4 LL | Foo::<'static, 'static, ()>(&0);
5 | ^^^ ------- help: remove this lifetime argument
7 | expected 1 lifetime argument
9 note: struct defined here, with 1 lifetime parameter: `'a`
10 --> $DIR/generic-arg-mismatch-recover.rs:1:8
12 LL | struct Foo<'a, T: 'a>(&'a T);
15 error[E0107]: this struct takes 1 lifetime argument but 2 lifetime arguments were supplied
16 --> $DIR/generic-arg-mismatch-recover.rs:9:5
18 LL | Bar::<'static, 'static, ()>(&());
19 | ^^^ ------- help: remove this lifetime argument
21 | expected 1 lifetime argument
23 note: struct defined here, with 1 lifetime parameter: `'a`
24 --> $DIR/generic-arg-mismatch-recover.rs:3:8
26 LL | struct Bar<'a>(&'a ());
29 error[E0107]: this struct takes 0 generic arguments but 1 generic argument was supplied
30 --> $DIR/generic-arg-mismatch-recover.rs:9:5
32 LL | Bar::<'static, 'static, ()>(&());
33 | ^^^ -- help: remove this generic argument
35 | expected 0 generic arguments
37 note: struct defined here, with 0 generic parameters
38 --> $DIR/generic-arg-mismatch-recover.rs:3:8
40 LL | struct Bar<'a>(&'a ());
43 error: aborting due to 3 previous errors
45 For more information about this error, try `rustc --explain E0107`.