11error[E0107]: struct takes 2 lifetime arguments but 1 lifetime argument was supplied
2- --> $DIR/constructor-lifetime-args .rs:17 :5
2+ --> $DIR/constructor-lifetime-early-binding-error .rs:15 :5
33 |
44LL | S::<'static>(&0, &0);
55 | ^ ------- supplied 1 lifetime argument
66 | |
77 | expected 2 lifetime arguments
88 |
99note: struct defined here, with 2 lifetime parameters: `'a`, `'b`
10- --> $DIR/constructor-lifetime-args .rs:9 :8
10+ --> $DIR/constructor-lifetime-early-binding-error .rs:7 :8
1111 |
1212LL | struct S<'a, 'b>(&'a u8, &'b u8);
1313 | ^ -- --
@@ -17,29 +17,29 @@ LL | S::<'static, 'static>(&0, &0);
1717 | +++++++++
1818
1919error[E0107]: struct takes 2 lifetime arguments but 3 lifetime arguments were supplied
20- --> $DIR/constructor-lifetime-args .rs:19 :5
20+ --> $DIR/constructor-lifetime-early-binding-error .rs:17 :5
2121 |
2222LL | S::<'static, 'static, 'static>(&0, &0);
2323 | ^ --------- help: remove the lifetime argument
2424 | |
2525 | expected 2 lifetime arguments
2626 |
2727note: struct defined here, with 2 lifetime parameters: `'a`, `'b`
28- --> $DIR/constructor-lifetime-args .rs:9 :8
28+ --> $DIR/constructor-lifetime-early-binding-error .rs:7 :8
2929 |
3030LL | struct S<'a, 'b>(&'a u8, &'b u8);
3131 | ^ -- --
3232
3333error[E0107]: enum takes 2 lifetime arguments but 1 lifetime argument was supplied
34- --> $DIR/constructor-lifetime-args .rs:22 :8
34+ --> $DIR/constructor-lifetime-early-binding-error .rs:20 :8
3535 |
3636LL | E::V::<'static>(&0);
3737 | ^ ------- supplied 1 lifetime argument
3838 | |
3939 | expected 2 lifetime arguments
4040 |
4141note: enum defined here, with 2 lifetime parameters: `'a`, `'b`
42- --> $DIR/constructor-lifetime-args .rs:10 :6
42+ --> $DIR/constructor-lifetime-early-binding-error .rs:8 :6
4343 |
4444LL | enum E<'a, 'b> {
4545 | ^ -- --
@@ -49,15 +49,15 @@ LL | E::V::<'static, 'static>(&0);
4949 | +++++++++
5050
5151error[E0107]: enum takes 2 lifetime arguments but 3 lifetime arguments were supplied
52- --> $DIR/constructor-lifetime-args .rs:24 :8
52+ --> $DIR/constructor-lifetime-early-binding-error .rs:22 :8
5353 |
5454LL | E::V::<'static, 'static, 'static>(&0);
5555 | ^ --------- help: remove the lifetime argument
5656 | |
5757 | expected 2 lifetime arguments
5858 |
5959note: enum defined here, with 2 lifetime parameters: `'a`, `'b`
60- --> $DIR/constructor-lifetime-args .rs:10 :6
60+ --> $DIR/constructor-lifetime-early-binding-error .rs:8 :6
6161 |
6262LL | enum E<'a, 'b> {
6363 | ^ -- --
0 commit comments