2020-09-02 07:40:56 +00:00
|
|
|
error[E0367]: `Drop` impl requires `T: Sized` but the struct it is implemented for does not
|
2020-01-03 00:02:06 +00:00
|
|
|
--> $DIR/issue-17959.rs:11:6
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
2020-01-03 00:02:06 +00:00
|
|
|
LL | impl<T> Drop for G<T> {
|
|
|
|
| ^
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
2020-01-03 00:02:06 +00:00
|
|
|
note: the implementor must specify the same requirement
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-17959.rs:7:1
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
2022-02-13 15:27:59 +00:00
|
|
|
LL | struct G<T: ?Sized> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0367`.
|