rust/tests/ui/issues/issue-17959.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
425 B
Plaintext
Raw Normal View History

error[E0367]: `Drop` impl requires `T: Sized` but the struct it is implemented for does not
--> $DIR/issue-17959.rs:11:6
2018-07-15 21:11:54 +00:00
|
LL | impl<T> Drop for G<T> {
| ^
2018-07-15 21:11:54 +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`.