@@ -29,7 +29,7 @@ LL | impl Drop for N<'static> { fn drop(&mut self) { } }
29
29
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
30
|
31
31
= note: `'static` is not a generic parameter
32
- note: use the same sequence of generic type, lifetime and const parameters as the struct definition
32
+ note: use the same sequence of generic lifetime, type and const parameters as the struct definition
33
33
--> $DIR/reject-specialized-drops-8142.rs:7:1
34
34
|
35
35
LL | struct N<'n> { x: &'n i8 }
@@ -42,7 +42,7 @@ LL | impl Drop for P<i8> { fn drop(&mut self) { } } // REJ
42
42
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43
43
|
44
44
= note: `i8` is not a generic parameter
45
- note: use the same sequence of generic type, lifetime and const parameters as the struct definition
45
+ note: use the same sequence of generic lifetime, type and const parameters as the struct definition
46
46
--> $DIR/reject-specialized-drops-8142.rs:9:1
47
47
|
48
48
LL | struct P<Tp> { x: *const Tp }
@@ -79,7 +79,7 @@ LL | impl<One> Drop for V<One,One> { fn drop(&mut self) { } } // REJ
79
79
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
80
80
|
81
81
= note: `One` is mentioned multiple times
82
- note: use the same sequence of generic type, lifetime and const parameters as the struct definition
82
+ note: use the same sequence of generic lifetime, type and const parameters as the struct definition
83
83
--> $DIR/reject-specialized-drops-8142.rs:15:1
84
84
|
85
85
LL | struct V<Tva, Tvb> { x: *const Tva, y: *const Tvb }
@@ -92,7 +92,7 @@ LL | impl<'lw> Drop for W<'lw,'lw> { fn drop(&mut self) { } } // REJ
92
92
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
93
93
|
94
94
= note: `'lw` is mentioned multiple times
95
- note: use the same sequence of generic type, lifetime and const parameters as the struct definition
95
+ note: use the same sequence of generic lifetime, type and const parameters as the struct definition
96
96
--> $DIR/reject-specialized-drops-8142.rs:16:1
97
97
|
98
98
LL | struct W<'l1, 'l2> { x: &'l1 i8, y: &'l2 u8 }
@@ -105,7 +105,7 @@ LL | impl Drop for X<3> { fn drop(&mut self) { } } // REJ
105
105
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
106
106
|
107
107
= note: `3_usize` is not a generic parameter
108
- note: use the same sequence of generic type, lifetime and const parameters as the struct definition
108
+ note: use the same sequence of generic lifetime, type and const parameters as the struct definition
109
109
--> $DIR/reject-specialized-drops-8142.rs:17:1
110
110
|
111
111
LL | struct X<const Ca: usize>;
@@ -118,7 +118,7 @@ LL | impl<const Ca: usize> Drop for Y<Ca, Ca> { fn drop(&mut self) { } } //
118
118
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119
119
|
120
120
= note: `Ca` is mentioned multiple times
121
- note: use the same sequence of generic type, lifetime and const parameters as the struct definition
121
+ note: use the same sequence of generic lifetime, type and const parameters as the struct definition
122
122
--> $DIR/reject-specialized-drops-8142.rs:18:1
123
123
|
124
124
LL | struct Y<const Ca: usize, const Cb: usize>;
0 commit comments