blob: 01416a0d79e5f72d24d928b4f9166c43f09ec6d8 [file] [log] [blame]
extern crate core;
use core::ops::Drop;
trait Bar {}
struct G<T: ?Sized> {
_ptr: *const T
}
impl<T> Drop for G<T> {
//~^ ERROR `Drop` impl requires `T: std::marker::Sized`
fn drop(&mut self) {
if !self._ptr.is_null() {
}
}
}
fn main() {
let x:G<dyn Bar>;
}