rust/tests/ui/dropck/issue-38868.stderr
Nilstrieb 41e8d152dc Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00

17 lines
488 B
Plaintext

error[E0366]: `Drop` impls cannot be specialized
--> $DIR/issue-38868.rs:5:1
|
LL | impl Drop for List<i32> {
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `i32` is not a generic parameter
note: use the same sequence of generic lifetime, type and const parameters as the struct definition
--> $DIR/issue-38868.rs:1:1
|
LL | pub struct List<T> {
| ^^^^^^^^^^^^^^^^^^
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0366`.