Skip to content

[regression] cannot declare non-inline module inside a block #71766

Closed
@Mark-Simulacrum

Description

@Mark-Simulacrum
[INFO] [stdout] error: Cannot declare a non-inline module inside a block unless it has a path attribute
[INFO] [stdout]  --> src/rcalc/lexer.rs:124:1
[INFO] [stdout]   |
[INFO] [stdout] 4 | mod rcalc;
[INFO] [stdout]   | ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error

cc @petrochenkov

Possibly related to changes in rustdoc, I believe both cases are inside doctests?

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions