fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error[E0367]: The requirement `T: std::marker::Sized` is added only by the Drop impl. 2 --> $DIR/issue-17959.rs:11:1 3 | 4LL | / impl<T> Drop for G<T> { 5LL | | 6LL | | fn drop(&mut self) { 7LL | | if !self._ptr.is_null() { 8LL | | } 9LL | | } 10LL | | } 11 | |_^ 12 | 13note: The same requirement must be part of the struct/enum definition 14 --> $DIR/issue-17959.rs:7:1 15 | 16LL | / struct G<T: ?Sized> { 17LL | | _ptr: *const T 18LL | | } 19 | |_^ 20 21error: aborting due to previous error 22 23For more information about this error, try `rustc --explain E0367`.