rust/src/test/ui/dropck/issue-38868.stderr

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

22 lines
518 B
Plaintext
Raw Normal View History

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
|
2019-03-09 06:03:44 -06:00
LL | / impl Drop for List<i32> {
2018-07-15 16:11:54 -05:00
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
2018-12-25 09:56:47 -06:00
--> $DIR/issue-38868.rs:1:1
2018-07-15 16:11:54 -05:00
|
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`.