2020-01-24 20:04:17 +00:00
|
|
|
error[E0367]: `Drop` impl requires `'adds_bnd: 'al` but the struct it is implemented for does not
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:58:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2024-07-01 20:43:00 +00:00
|
|
|
LL | impl<'al, 'adds_bnd: 'al> Drop for K<'al, 'adds_bnd> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2020-01-03 00:02:06 +00:00
|
|
|
note: the implementor must specify the same requirement
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:6:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2024-07-01 20:43:00 +00:00
|
|
|
LL | struct K<'l1, 'l2> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2020-01-24 20:04:17 +00:00
|
|
|
error[E0367]: `Drop` impl requires `'adds_bnd: 'al` but the struct it is implemented for does not
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:63:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2024-07-01 20:43:00 +00:00
|
|
|
LL | / impl<'al, 'adds_bnd> Drop for L<'al, 'adds_bnd>
|
|
|
|
LL | |
|
|
|
|
LL | | where
|
|
|
|
LL | | 'adds_bnd: 'al,
|
|
|
|
| |___________________^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2020-01-03 00:02:06 +00:00
|
|
|
note: the implementor must specify the same requirement
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:10:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2024-07-01 20:43:00 +00:00
|
|
|
LL | struct L<'l1, 'l2> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2022-03-23 09:06:29 +00:00
|
|
|
error[E0366]: `Drop` impls cannot be specialized
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:75:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2024-07-01 20:43:00 +00:00
|
|
|
LL | impl Drop for N<'static> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2022-03-23 09:06:29 +00:00
|
|
|
= note: `'static` is not a generic parameter
|
2022-03-29 05:29:59 +00:00
|
|
|
note: use the same sequence of generic lifetime, type and const parameters as the struct definition
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:17:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2024-07-01 20:43:00 +00:00
|
|
|
LL | struct N<'n> {
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2020-01-03 00:02:06 +00:00
|
|
|
error[E0366]: `Drop` impls cannot be specialized
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:84:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2024-07-01 20:43:00 +00:00
|
|
|
LL | impl Drop for P<i8> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2022-03-23 09:06:29 +00:00
|
|
|
= note: `i8` is not a generic parameter
|
2022-03-29 05:29:59 +00:00
|
|
|
note: use the same sequence of generic lifetime, type and const parameters as the struct definition
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:23:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2024-07-01 20:43:00 +00:00
|
|
|
LL | struct P<Tp> {
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2020-01-03 00:02:06 +00:00
|
|
|
error[E0367]: `Drop` impl requires `AddsBnd: Bound` but the struct it is implemented for does not
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:89:15
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2024-07-01 20:43:00 +00:00
|
|
|
LL | impl<AddsBnd: Bound> Drop for Q<AddsBnd> {
|
|
|
|
| ^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2020-01-03 00:02:06 +00:00
|
|
|
note: the implementor must specify the same requirement
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:26:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2024-07-01 20:43:00 +00:00
|
|
|
LL | struct Q<Tq> {
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2020-01-03 00:02:06 +00:00
|
|
|
error[E0366]: `Drop` impls cannot be specialized
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:110:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2024-07-01 20:43:00 +00:00
|
|
|
LL | impl<One> Drop for V<One, One> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2022-03-23 09:06:29 +00:00
|
|
|
= note: `One` is mentioned multiple times
|
2022-03-29 05:29:59 +00:00
|
|
|
note: use the same sequence of generic lifetime, type and const parameters as the struct definition
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:39:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2024-07-01 20:43:00 +00:00
|
|
|
LL | struct V<Tva, Tvb> {
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2022-03-23 09:06:29 +00:00
|
|
|
error[E0366]: `Drop` impls cannot be specialized
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:115:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2024-07-01 20:43:00 +00:00
|
|
|
LL | impl<'lw> Drop for W<'lw, 'lw> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2022-03-23 09:06:29 +00:00
|
|
|
= note: `'lw` is mentioned multiple times
|
2022-03-29 05:29:59 +00:00
|
|
|
note: use the same sequence of generic lifetime, type and const parameters as the struct definition
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:43:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2024-07-01 20:43:00 +00:00
|
|
|
LL | struct W<'l1, 'l2> {
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2020-11-12 14:39:21 +00:00
|
|
|
error[E0366]: `Drop` impls cannot be specialized
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:120:1
|
2020-11-12 14:39:21 +00:00
|
|
|
|
|
2024-07-01 20:43:00 +00:00
|
|
|
LL | impl Drop for X<3> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2020-11-12 14:39:21 +00:00
|
|
|
|
|
2022-07-18 23:25:14 +00:00
|
|
|
= note: `3` is not a generic parameter
|
2022-03-29 05:29:59 +00:00
|
|
|
note: use the same sequence of generic lifetime, type and const parameters as the struct definition
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:47:1
|
2020-11-12 14:39:21 +00:00
|
|
|
|
|
|
|
|
LL | struct X<const Ca: usize>;
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-11-12 14:39:21 +00:00
|
|
|
|
|
|
|
error[E0366]: `Drop` impls cannot be specialized
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:125:1
|
2020-11-12 14:39:21 +00:00
|
|
|
|
|
2024-07-01 20:43:00 +00:00
|
|
|
LL | impl<const Ca: usize> Drop for Y<Ca, Ca> {
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-11-12 14:39:21 +00:00
|
|
|
|
|
2022-03-23 09:06:29 +00:00
|
|
|
= note: `Ca` is mentioned multiple times
|
2022-03-29 05:29:59 +00:00
|
|
|
note: use the same sequence of generic lifetime, type and const parameters as the struct definition
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:48:1
|
2020-11-12 14:39:21 +00:00
|
|
|
|
|
|
|
|
LL | struct Y<const Ca: usize, const Cb: usize>;
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-11-12 14:39:21 +00:00
|
|
|
|
2020-01-03 00:02:06 +00:00
|
|
|
error[E0367]: `Drop` impl requires `AddsBnd: Bound` but the enum it is implemented for does not
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:130:15
|
2020-01-03 00:02:06 +00:00
|
|
|
|
|
2024-07-01 20:43:00 +00:00
|
|
|
LL | impl<AddsBnd: Bound> Drop for Enum<AddsBnd> {
|
|
|
|
| ^^^^^
|
2020-01-03 00:02:06 +00:00
|
|
|
|
|
|
|
|
note: the implementor must specify the same requirement
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:50:1
|
2020-01-03 00:02:06 +00:00
|
|
|
|
|
2024-07-01 20:43:00 +00:00
|
|
|
LL | enum Enum<T> {
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2020-01-03 00:02:06 +00:00
|
|
|
|
|
|
|
error[E0367]: `Drop` impl requires `AddsBnd: Bound` but the struct it is implemented for does not
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:135:15
|
2020-01-03 00:02:06 +00:00
|
|
|
|
|
2024-07-01 20:43:00 +00:00
|
|
|
LL | impl<AddsBnd: Bound> Drop for TupleStruct<AddsBnd> {
|
|
|
|
| ^^^^^
|
2020-01-03 00:02:06 +00:00
|
|
|
|
|
|
|
|
note: the implementor must specify the same requirement
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:53:1
|
2020-01-03 00:02:06 +00:00
|
|
|
|
|
|
|
|
LL | struct TupleStruct<T>(T);
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2020-01-03 00:02:06 +00:00
|
|
|
|
2020-10-04 20:24:14 +00:00
|
|
|
error[E0367]: `Drop` impl requires `AddsBnd: Bound` but the union it is implemented for does not
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:140:22
|
2020-10-04 20:24:14 +00:00
|
|
|
|
|
2024-07-01 20:43:00 +00:00
|
|
|
LL | impl<AddsBnd: Copy + Bound> Drop for Union<AddsBnd> {
|
|
|
|
| ^^^^^
|
2020-10-04 20:24:14 +00:00
|
|
|
|
|
|
|
|
note: the implementor must specify the same requirement
|
2024-07-01 20:43:00 +00:00
|
|
|
--> $DIR/reject-specialized-drops-8142.rs:54:1
|
2020-10-04 20:24:14 +00:00
|
|
|
|
|
2024-07-01 20:43:00 +00:00
|
|
|
LL | union Union<T: Copy> {
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2020-10-04 20:24:14 +00:00
|
|
|
|
2024-07-01 20:43:00 +00:00
|
|
|
error: aborting due to 12 previous errors
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2022-03-23 09:06:29 +00:00
|
|
|
Some errors have detailed explanations: E0366, E0367.
|
|
|
|
For more information about an error, try `rustc --explain E0366`.
|