error[E0277]: the trait bound `T: Default` is not satisfied --> tests/compile_fail/generics_missing_default.rs:8:13 | 8 | Variant(T) | ^ the trait `Default` is not implemented for `T` | help: consider restricting type parameter `T` | 6 | enum Enum { | +++++++++++++++++++++++ error[E0277]: the trait bound `T: Default` is not satisfied --> tests/compile_fail/generics_missing_default.rs:15:16 | 15 | field: T | ^ the trait `Default` is not implemented for `T` | help: consider restricting type parameter `T` | 12 | enum Enum2 { | +++++++++++++++++++++++ error[E0277]: the trait bound `T: Default` is not satisfied --> tests/compile_fail/generics_missing_default.rs:21:12 | 21 | field: T | ^ the trait `Default` is not implemented for `T` | help: consider restricting type parameter `T` | 20 | struct Struct { | +++++++++++++++++++++++