1 error[E0573]: expected type, found variant `Mode::Cool`
2 --> $DIR/assoc_const_eq_diagnostic.rs:11:35
4 LL | pub trait CoolStuff: Parse<MODE = Mode::Cool> {}
8 | help: try using the variant's enum: `Mode`
10 error[E0573]: expected type, found variant `Mode::Cool`
11 --> $DIR/assoc_const_eq_diagnostic.rs:15:17
13 LL | fn no_help() -> Mode::Cool {}
17 | help: try using the variant's enum: `Mode`
19 error: expected associated constant bound, found type
20 --> $DIR/assoc_const_eq_diagnostic.rs:11:28
22 LL | pub trait CoolStuff: Parse<MODE = Mode::Cool> {}
23 | ^^^^^^^^^^^^^^^^^ help: if equating a const, try wrapping with braces: `MODE = { const }`
25 note: associated constant defined here
26 --> $DIR/assoc_const_eq_diagnostic.rs:8:5
28 LL | const MODE: Mode;
31 error: aborting due to 3 previous errors
33 For more information about this error, try `rustc --explain E0573`.