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