@@ -18,18 +18,15 @@ error[E0107]: associated type takes 0 generic arguments but 1 generic argument w
1818 --> $DIR/invalid_const_in_lifetime_position.rs:4:26
1919 |
2020LL | 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
2224 |
2325note: associated type defined here, with 0 generic parameters
2426 --> $DIR/invalid_const_in_lifetime_position.rs:2:10
2527 |
2628LL | type Y<'a>;
2729 | ^
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- |
3330
3431error[E0107]: associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
3532 --> $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
5249 --> $DIR/invalid_const_in_lifetime_position.rs:4:26
5350 |
5451LL | 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
5655 |
5756note: associated type defined here, with 0 generic parameters
5857 --> $DIR/invalid_const_in_lifetime_position.rs:2:10
5958 |
6059LL | type Y<'a>;
6160 | ^
6261 = 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- |
6862
6963error[E0107]: associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
7064 --> $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
8781 --> $DIR/invalid_const_in_lifetime_position.rs:4:26
8882 |
8983LL | 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
9187 |
9288note: associated type defined here, with 0 generic parameters
9389 --> $DIR/invalid_const_in_lifetime_position.rs:2:10
9490 |
9591LL | type Y<'a>;
9692 | ^
9793 = 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- |
10394
10495error[E0038]: the trait `X` cannot be made into an object
10596 --> $DIR/invalid_const_in_lifetime_position.rs:4:20
0 commit comments