You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, you can't use enums in constants at all. If we want to revisit that, it would have to be an RFC. (It would certainly make sense to use C-like enums, anyway.)
This commit partially reverts rust-lang#3934, opting to create a span that covers
the entire body of a closure when formatting a closure body with a
block-formatting strategy, rather than having the block-formatting code
determine if the visitor pointer should be rewound. The problem with
rewinding the visitor pointer is it may be incorrect for other (i.e.
non-artificial) AST nodes, as in the case of rust-lang#4382.
Closesrust-lang#4382
Not exactly sure what's going on here. The string and enum seem to be two separate errors.
Test case
Result
The text was updated successfully, but these errors were encountered: