1 #### Note: this error code is no longer emitted by the compiler.
3 The `Default` trait was derived on an enum.
5 Erroneous code example:
15 The `Default` cannot be derived on an enum for the simple reason that the
16 compiler doesn't know which value to pick by default whereas it can for a
17 struct as long as all its fields implement the `Default` trait as well.
19 If you still want to implement `Default` on your enum, you'll have to do it "by
28 impl Default for Food {
29 fn default() -> Food {