"block label not supported here" when the label is in the wrong place · Issue #138585 · rust-lang/rust (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Assignees

zachs18

@kpreid

Description

@kpreid

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

Issue actions