1 error[E0367]: The requirement `T: std::marker::Sized` is added only by the Drop impl.
2 --> $DIR/issue-17959.rs:21:1
4 LL | / impl<T> Drop for G<T> {
5 LL | | //~^ ERROR: The requirement `T: std::marker::Sized` is added only by the Drop impl. [E0367]
6 LL | | fn drop(&mut self) {
7 LL | | if !self._ptr.is_null() {
13 note: The same requirement must be part of the struct/enum definition
14 --> $DIR/issue-17959.rs:17:1
16 LL | / struct G<T: ?Sized> {
21 error: aborting due to previous error
23 For more information about this error, try `rustc --explain E0367`.