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