46 lines
1.6 KiB
Plaintext
46 lines
1.6 KiB
Plaintext
error[E0573]: expected type, found variant `Mode::Cool`
|
|
--> $DIR/assoc_const_eq_diagnostic.rs:11:35
|
|
|
|
|
LL | pub trait CoolStuff: Parse<MODE = Mode::Cool> {}
|
|
| ^^^^^^^^^^
|
|
| |
|
|
| not a type
|
|
| help: try using the variant's enum: `Mode`
|
|
|
|
error[E0573]: expected type, found variant `Mode::Cool`
|
|
--> $DIR/assoc_const_eq_diagnostic.rs:16:17
|
|
|
|
|
LL | fn no_help() -> Mode::Cool {}
|
|
| ^^^^^^^^^^
|
|
| |
|
|
| not a type
|
|
| help: try using the variant's enum: `Mode`
|
|
|
|
error: expected associated constant bound, found type
|
|
--> $DIR/assoc_const_eq_diagnostic.rs:11:28
|
|
|
|
|
LL | pub trait CoolStuff: Parse<MODE = Mode::Cool> {}
|
|
| ^^^^^^^^^^^^^^^^^ help: if equating a const, try wrapping with braces: `MODE = { const }`
|
|
|
|
|
note: associated constant defined here
|
|
--> $DIR/assoc_const_eq_diagnostic.rs:8:5
|
|
|
|
|
LL | const MODE: Mode;
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
error: expected associated constant bound, found type
|
|
--> $DIR/assoc_const_eq_diagnostic.rs:11:28
|
|
|
|
|
LL | pub trait CoolStuff: Parse<MODE = Mode::Cool> {}
|
|
| ^^^^^^^^^^^^^^^^^ help: if equating a const, try wrapping with braces: `MODE = { const }`
|
|
|
|
|
note: associated constant defined here
|
|
--> $DIR/assoc_const_eq_diagnostic.rs:8:5
|
|
|
|
|
LL | const MODE: Mode;
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0573`.
|