2022-12-30 05:09:09 +00:00
|
|
|
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`
|
2023-04-19 00:13:53 +00:00
|
|
|
--> $DIR/assoc_const_eq_diagnostic.rs:16:17
|
2022-12-30 05:09:09 +00:00
|
|
|
|
|
|
|
|
LL | fn no_help() -> Mode::Cool {}
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| not a type
|
|
|
|
| help: try using the variant's enum: `Mode`
|
|
|
|
|
2023-11-24 08:53:10 +00:00
|
|
|
error: expected constant, found type
|
|
|
|
--> $DIR/assoc_const_eq_diagnostic.rs:11:35
|
2022-12-30 05:09:09 +00:00
|
|
|
|
|
|
|
|
LL | pub trait CoolStuff: Parse<MODE = Mode::Cool> {}
|
2023-11-24 08:53:10 +00:00
|
|
|
| ---- ^^^^^^^^^^ unexpected type
|
|
|
|
| |
|
|
|
|
| expected a constant because of this associated constant
|
2022-12-30 05:09:09 +00:00
|
|
|
|
|
2023-11-24 08:53:10 +00:00
|
|
|
note: the associated constant is defined here
|
2022-12-30 05:09:09 +00:00
|
|
|
--> $DIR/assoc_const_eq_diagnostic.rs:8:5
|
|
|
|
|
|
|
|
|
LL | const MODE: Mode;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2023-11-24 08:53:10 +00:00
|
|
|
help: consider adding braces here
|
|
|
|
|
|
|
|
|
LL | pub trait CoolStuff: Parse<MODE = { Mode::Cool }> {}
|
|
|
|
| + +
|
2022-12-30 05:09:09 +00:00
|
|
|
|
2023-11-24 08:53:10 +00:00
|
|
|
error: expected constant, found type
|
|
|
|
--> $DIR/assoc_const_eq_diagnostic.rs:11:35
|
2023-04-19 00:13:53 +00:00
|
|
|
|
|
|
|
|
LL | pub trait CoolStuff: Parse<MODE = Mode::Cool> {}
|
2023-11-24 08:53:10 +00:00
|
|
|
| ---- ^^^^^^^^^^ unexpected type
|
|
|
|
| |
|
|
|
|
| expected a constant because of this associated constant
|
2023-04-19 00:13:53 +00:00
|
|
|
|
|
2023-11-24 08:53:10 +00:00
|
|
|
note: the associated constant is defined here
|
2023-04-19 00:13:53 +00:00
|
|
|
--> $DIR/assoc_const_eq_diagnostic.rs:8:5
|
|
|
|
|
|
|
|
|
LL | const MODE: Mode;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2023-10-04 18:34:50 +00:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2023-11-24 08:53:10 +00:00
|
|
|
help: consider adding braces here
|
|
|
|
|
|
|
|
|
LL | pub trait CoolStuff: Parse<MODE = { Mode::Cool }> {}
|
|
|
|
| + +
|
2023-04-19 00:13:53 +00:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2022-12-30 05:09:09 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0573`.
|