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
fn main() {
let n = 1;
if 5 == {
println!("five");
}
}
reports
<anon>:6:1: 6:2 error: expected `{`, found `}`
<anon>:6 }
^
<anon>:6:1: 6:2 help: place this code inside a block
The help message is pretty confusing. Which code it has in mind? There’s no code which you could place into a block to fix this error either, as far as I can see.