@@ -18,15 +18,18 @@ error[E0107]: associated type takes 0 generic arguments but 1 generic argument w
18
18
--> $DIR/invalid_const_in_lifetime_position.rs:4:26
19
19
|
20
20
LL | fn f<'a>(arg : Box<dyn X<Y<1> = &'a ()>>) {}
21
- | ^--- help: remove these generics
22
- | |
23
- | expected 0 generic arguments
21
+ | ^ expected 0 generic arguments
24
22
|
25
23
note: associated type defined here, with 0 generic parameters
26
24
--> $DIR/invalid_const_in_lifetime_position.rs:2:10
27
25
|
28
26
LL | type Y<'a>;
29
27
| ^
28
+ help: remove these generics
29
+ |
30
+ LL - fn f<'a>(arg : Box<dyn X<Y<1> = &'a ()>>) {}
31
+ LL + fn f<'a>(arg : Box<dyn X<Y = &'a ()>>) {}
32
+ |
30
33
31
34
error[E0107]: associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
32
35
--> $DIR/invalid_const_in_lifetime_position.rs:4:26
@@ -49,16 +52,19 @@ error[E0107]: associated type takes 0 generic arguments but 1 generic argument w
49
52
--> $DIR/invalid_const_in_lifetime_position.rs:4:26
50
53
|
51
54
LL | fn f<'a>(arg : Box<dyn X<Y<1> = &'a ()>>) {}
52
- | ^--- help: remove these generics
53
- | |
54
- | expected 0 generic arguments
55
+ | ^ expected 0 generic arguments
55
56
|
56
57
note: associated type defined here, with 0 generic parameters
57
58
--> $DIR/invalid_const_in_lifetime_position.rs:2:10
58
59
|
59
60
LL | type Y<'a>;
60
61
| ^
61
62
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
63
+ help: remove these generics
64
+ |
65
+ LL - fn f<'a>(arg : Box<dyn X<Y<1> = &'a ()>>) {}
66
+ LL + fn f<'a>(arg : Box<dyn X<Y = &'a ()>>) {}
67
+ |
62
68
63
69
error[E0107]: associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
64
70
--> $DIR/invalid_const_in_lifetime_position.rs:4:26
@@ -81,16 +87,19 @@ error[E0107]: associated type takes 0 generic arguments but 1 generic argument w
81
87
--> $DIR/invalid_const_in_lifetime_position.rs:4:26
82
88
|
83
89
LL | fn f<'a>(arg : Box<dyn X<Y<1> = &'a ()>>) {}
84
- | ^--- help: remove these generics
85
- | |
86
- | expected 0 generic arguments
90
+ | ^ expected 0 generic arguments
87
91
|
88
92
note: associated type defined here, with 0 generic parameters
89
93
--> $DIR/invalid_const_in_lifetime_position.rs:2:10
90
94
|
91
95
LL | type Y<'a>;
92
96
| ^
93
97
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
98
+ help: remove these generics
99
+ |
100
+ LL - fn f<'a>(arg : Box<dyn X<Y<1> = &'a ()>>) {}
101
+ LL + fn f<'a>(arg : Box<dyn X<Y = &'a ()>>) {}
102
+ |
94
103
95
104
error[E0038]: the trait `X` cannot be made into an object
96
105
--> $DIR/invalid_const_in_lifetime_position.rs:4:20
0 commit comments