Skip to content

Indentation broken in error reporting #21360

Closed
@mahkoh

Description

@mahkoh
fn main() {
    let mut x = 1us;
    let y = &x;
    &mut x;





}
test2.rs:10:2: 10:2 note: previous borrow ends here
test2.rs:1 fn main() {
...
test2.rs:10 }
            ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions