mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
16 lines
414 B
Text
16 lines
414 B
Text
error: unexpected `==`
|
|
--> $DIR/issue-101477-enum.rs:6:7
|
|
|
|
|
LL | B == 2
|
|
| ^^ help: try using `=` instead
|
|
|
|
|
= help: enum variants can be `Variant`, `Variant = <integer>`, `Variant(Type, ..., TypeN)` or `Variant { fields: Types }`
|
|
|
|
error: expected item, found `==`
|
|
--> $DIR/issue-101477-enum.rs:6:7
|
|
|
|
|
LL | B == 2
|
|
| ^^ expected item
|
|
|
|
error: aborting due to 2 previous errors
|
|
|