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