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
Sounds cryptic, I know, sorry for that. Here's what's going on:
fnmain(){let foo = 1;// works as expectedlet bar = match foo {1 => 2,
_ => 3,}asu8;// error: expected expression, found keyword `as`let bar = {match foo {1 => 2,
_ => 3,}asu8};// but this workslet bar = {(match foo {1 => 2,
_ => 3,})asu8};// and also thislet bar = {1asu8};}
Meta
rustc --version --verbose:
This is present since at least stable-1.19, but here I rustup updated just to be sure:
Sounds cryptic, I know, sorry for that. Here's what's going on:
Meta
rustc --version --verbose
:This is present since at least stable-1.19, but here I
rustup update
d just to be sure:The text was updated successfully, but these errors were encountered: