extern crate core; use core::ops::Drop; trait Bar {} struct G { _ptr: *const T } impl Drop for G { //~^ ERROR `Drop` impl requires `T: Sized` fn drop(&mut self) { if !self._ptr.is_null() { } } } fn main() { let x:G; }