1 error[E0107]: this struct takes 2 lifetime arguments but 1 lifetime argument was supplied
2 --> $DIR/constructor-lifetime-args.rs:17:5
4 LL | S::<'static>(&0, &0);
5 | ^ ------- supplied 1 lifetime argument
7 | expected 2 lifetime arguments
9 note: struct defined here, with 2 lifetime parameters: `'a`, `'b`
10 --> $DIR/constructor-lifetime-args.rs:9:8
12 LL | struct S<'a, 'b>(&'a u8, &'b u8);
14 help: add missing lifetime argument
16 LL | S::<'static, 'b>(&0, &0);
19 error[E0107]: this struct takes 2 lifetime arguments but 3 lifetime arguments were supplied
20 --> $DIR/constructor-lifetime-args.rs:19:5
22 LL | S::<'static, 'static, 'static>(&0, &0);
23 | ^ ------- help: remove this lifetime argument
25 | expected 2 lifetime arguments
27 note: struct defined here, with 2 lifetime parameters: `'a`, `'b`
28 --> $DIR/constructor-lifetime-args.rs:9:8
30 LL | struct S<'a, 'b>(&'a u8, &'b u8);
33 error[E0107]: this enum takes 2 lifetime arguments but 1 lifetime argument was supplied
34 --> $DIR/constructor-lifetime-args.rs:22:8
36 LL | E::V::<'static>(&0);
37 | ^ ------- supplied 1 lifetime argument
39 | expected 2 lifetime arguments
41 note: enum defined here, with 2 lifetime parameters: `'a`, `'b`
42 --> $DIR/constructor-lifetime-args.rs:10:6
46 help: add missing lifetime argument
48 LL | E::V::<'static, 'b>(&0);
51 error[E0107]: this enum takes 2 lifetime arguments but 3 lifetime arguments were supplied
52 --> $DIR/constructor-lifetime-args.rs:24:8
54 LL | E::V::<'static, 'static, 'static>(&0);
55 | ^ ------- help: remove this lifetime argument
57 | expected 2 lifetime arguments
59 note: enum defined here, with 2 lifetime parameters: `'a`, `'b`
60 --> $DIR/constructor-lifetime-args.rs:10:6
65 error: aborting due to 4 previous errors
67 For more information about this error, try `rustc --explain E0107`.