blob: 626b670ae35553501e72ba0bedc18439ad811562 [file] [log] [blame]
error[E0367]: The requirement `T: std::marker::Sized` is added only by the Drop impl.
--> $DIR/issue-17959.rs:21:1
|
LL | / impl<T> Drop for G<T> {
LL | | //~^ ERROR: The requirement `T: std::marker::Sized` is added only by the Drop impl. [E0367]
LL | | fn drop(&mut self) {
LL | | if !self._ptr.is_null() {
LL | | }
LL | | }
LL | | }
| |_^
|
note: The same requirement must be part of the struct/enum definition
--> $DIR/issue-17959.rs:17:1
|
LL | / struct G<T: ?Sized> {
LL | | _ptr: *const T
LL | | }
| |_^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0367`.