1 error[E0107]: wrong number of lifetime arguments: expected 1, found 2
2 --> $DIR/generic-arg-mismatch-recover.rs:6:20
4 LL | Foo::<'static, 'static, ()>(&0);
5 | ^^^^^^^ unexpected lifetime argument
7 error[E0308]: mismatched types
8 --> $DIR/generic-arg-mismatch-recover.rs:6:33
10 LL | Foo::<'static, 'static, ()>(&0);
11 | ^^ expected `()`, found integer
13 = note: expected reference `&'static ()`
14 found reference `&{integer}`
16 error[E0107]: wrong number of lifetime arguments: expected 1, found 2
17 --> $DIR/generic-arg-mismatch-recover.rs:9:20
19 LL | Bar::<'static, 'static, ()>(&());
20 | ^^^^^^^ unexpected lifetime argument
22 error[E0107]: wrong number of type arguments: expected 0, found 1
23 --> $DIR/generic-arg-mismatch-recover.rs:9:29
25 LL | Bar::<'static, 'static, ()>(&());
26 | ^^ unexpected type argument
28 error: aborting due to 4 previous errors
30 Some errors have detailed explanations: E0107, E0308.
31 For more information about an error, try `rustc --explain E0107`.