2020-01-02 19:02:06 -05:00
|
|
|
error[E0366]: `Drop` impls cannot be specialized
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-38868.rs:5:1
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2022-02-13 16:27:59 +01:00
|
|
|
LL | impl Drop for List<i32> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2022-03-23 10:06:29 +01:00
|
|
|
= note: `i32` is not a generic parameter
|
2022-03-29 07:29:59 +02:00
|
|
|
note: use the same sequence of generic lifetime, type and const parameters as the struct definition
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-38868.rs:1:1
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2022-02-13 16:27:59 +01:00
|
|
|
LL | pub struct List<T> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2018-07-15 14:11:54 -07:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0366`.
|