1
1
error[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
3
3
|
4
4
LL | S::<'static>(&0, &0);
5
5
| ^ ------- supplied 1 lifetime argument
6
6
| |
7
7
| expected 2 lifetime arguments
8
8
|
9
9
note: 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
11
11
|
12
12
LL | struct S<'a, 'b>(&'a u8, &'b u8);
13
13
| ^ -- --
@@ -17,29 +17,29 @@ LL | S::<'static, 'static>(&0, &0);
17
17
| +++++++++
18
18
19
19
error[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
21
21
|
22
22
LL | S::<'static, 'static, 'static>(&0, &0);
23
23
| ^ --------- help: remove the lifetime argument
24
24
| |
25
25
| expected 2 lifetime arguments
26
26
|
27
27
note: 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
29
29
|
30
30
LL | struct S<'a, 'b>(&'a u8, &'b u8);
31
31
| ^ -- --
32
32
33
33
error[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
35
35
|
36
36
LL | E::V::<'static>(&0);
37
37
| ^ ------- supplied 1 lifetime argument
38
38
| |
39
39
| expected 2 lifetime arguments
40
40
|
41
41
note: 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
43
43
|
44
44
LL | enum E<'a, 'b> {
45
45
| ^ -- --
@@ -49,15 +49,15 @@ LL | E::V::<'static, 'static>(&0);
49
49
| +++++++++
50
50
51
51
error[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
53
53
|
54
54
LL | E::V::<'static, 'static, 'static>(&0);
55
55
| ^ --------- help: remove the lifetime argument
56
56
| |
57
57
| expected 2 lifetime arguments
58
58
|
59
59
note: 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
61
61
|
62
62
LL | enum E<'a, 'b> {
63
63
| ^ -- --
0 commit comments