rust/src/test/ui/dropck/issue-38868.stderr
2020-11-12 15:31:52 +01:00

21 lines
518 B
Text

error[E0366]: `Drop` impls cannot be specialized
--> $DIR/issue-38868.rs:5:1
|
LL | / impl Drop for List<i32> {
LL | | fn drop(&mut self) {
LL | | panic!()
LL | | }
LL | | }
| |_^
|
note: use the same sequence of generic type, lifetime and const parameters as the struct definition
--> $DIR/issue-38868.rs:1:1
|
LL | / pub struct List<T> {
LL | | head: T,
LL | | }
| |_^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0366`.