mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
16 lines
427 B
Plaintext
16 lines
427 B
Plaintext
error[E0367]: `Drop` impl requires `T: Sized` but the struct it is implemented for does not
|
|
--> $DIR/issue-17959.rs:11:6
|
|
|
|
|
LL | impl<T> Drop for G<T> {
|
|
| ^
|
|
|
|
|
note: the implementor must specify the same requirement
|
|
--> $DIR/issue-17959.rs:7:1
|
|
|
|
|
LL | struct G<T: ?Sized> {
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0367`.
|