2022-09-06 23:26:50 -05:00
|
|
|
error: unexpected `==`
|
|
|
|
--> $DIR/issue-101477-enum.rs:6:7
|
|
|
|
|
|
|
|
|
LL | B == 2
|
|
|
|
| ^^ help: try using `=` instead
|
2022-11-30 14:01:00 -06:00
|
|
|
|
|
|
|
|
= help: enum variants can be `Variant`, `Variant = <integer>`, `Variant(Type, ..., TypeN)` or `Variant { fields: Types }`
|
2022-09-06 23:26:50 -05:00
|
|
|
|
|
|
|
error: expected item, found `==`
|
|
|
|
--> $DIR/issue-101477-enum.rs:6:7
|
|
|
|
|
|
|
|
|
LL | B == 2
|
|
|
|
| ^^ expected item
|
2023-09-05 22:35:07 -05:00
|
|
|
|
|
|
|
|
= note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
|
2022-09-06 23:26:50 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|