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