"block label not supported here" when the label is in the wrong place · Issue #138585 · rust-lang/rust (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Assignees
Description
Code
fn main() { loop 'a: { return; } }
Current output
error: block label not supported here --> src/main.rs:2:10 | 2 | loop 'a: { return; } | ^^^ not supported here
Desired output
error: misplaced loop label
--> src/main.rs:2:10
|
2 | loop 'a: { return; }
| ^^^ not supported here
help: change this to 'a: loop {
Rust Version
1.85.0
Metadata
Metadata
Labels
Development
No branches or pull requests