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