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