Skip to content

Slash (/) in diagnostic's path on Windows #40149

Closed
@KalitaAlexey

Description

@KalitaAlexey
cargo new app

src/lib.rs: mod f;

src/f/mod.rs: f

cargo build
error: expected one of `!` or `::`, found `<eof>`
 --> src\f/mod.rs:1:1

It must be src\f \ mod.rs, but it is src\f / mod.rs

src/f/mod.rs: mod g;

src/f/g/mod.rs: g

cargo build
error: expected one of `!` or `::`, found `<eof>`
 --> src\f\g/mod.rs:1:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions