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
error: expected `{`, found `;`
--> src/bin/main.rs:2:29
|
2 | if let Some(_) = Some(2); {}
| ^ expected `{`
|
note: the `if` expression is missing a block after this condition
--> src/bin/main.rs:2:8
|
2 | if let Some(_) = Some(2); {}
| ^^^^^^^^^^^^^^^^^^^^^
Expect output like:
error: expected `{`, found `;`
--> src/bin/main.rs:2:29
|
2 | if let Some(_) = Some(2); {}
| ^ expected `{`
|
note: the `if` expression is missing a block after this condition
--> src/bin/main.rs:2:8
|
2 | if let Some(_) = Some(2); {}
| ^ help: remove this semicolon
Activity
ravlynd commentedon Jul 28, 2026
@rustbot claim
Rollup merge of rust-lang#160861 - ravlynd:if-semi-before-block-sugge…
Rollup merge of rust-lang#160861 - ravlynd:if-semi-before-block-sugge…
Rollup merge of rust-lang#160861 - ravlynd:if-semi-before-block-sugge…
Rollup merge of rust-lang#160861 - ravlynd:if-semi-before-block-sugge…
Unrolled build for #160861