1 The `Default` trait was derived on an enum.
3 Erroneous code example:
13 The `Default` cannot be derived on an enum for the simple reason that the
14 compiler doesn't know which value to pick by default whereas it can for a
15 struct as long as all its fields implement the `Default` trait as well.
17 If you still want to implement `Default` on your enum, you'll have to do it "by
26 impl Default for Food {
27 fn default() -> Food {