Skip to content

doctests reject extra semicolons as of nightly-2021-11-21 (and beta) #91398

Closed
@TheBlueMatt

Description

@TheBlueMatt

The following fails to compile in doctests as Rust 2015 on Beta and latest nightly, but passes doctests fine on stable:

//! ```
//! # struct FakeLogger {};
//! #
//! # fn main() {
//! eprintln!("HI");
//! # }
//! ```

fn main() {
    println!("Hello, world!");
}

Probably related to #91014, #91026, and #91134.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-doctestsArea: Documentation tests, run by rustdocC-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc 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