Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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