1 An attempt was made to implement `Drop` on a specialization of a generic type.
2 An example is shown below:
11 impl<T: Foo> Drop for MyStruct<T> {
16 This code is not legal: it is not possible to specialize `Drop` to a subset of
17 implementations of a generic type. In order for this code to work, `MyStruct`
18 must also require that `T` implements `Foo`. Alternatively, another option is
19 to wrap the generic type in another that specializes appropriately:
28 struct MyStructWrapper<T: Foo> {
32 impl <T: Foo> Drop for MyStructWrapper<T> {