error[E0367]: `Drop` impl requires `T: Sized` but the struct it is implemented for does not --> $DIR/issue-17959.rs:11:6 | LL | impl Drop for G { | ^ | note: the implementor must specify the same requirement --> $DIR/issue-17959.rs:7:1 | LL | struct G { | ^^^^^^^^^^^^^^^^^^^ error: aborting due to previous error For more information about this error, try `rustc --explain E0367`.