os-rust/tests/ui/dropck/issue-38868.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
488 B
Text
Raw Normal View History

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
|
= 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
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`.