Skip to content

regression: assert_eq cannot find panic with no_implicit_prelude #61567

Closed
@Mark-Simulacrum

Description

@Mark-Simulacrum

This only works on 2015 edition. This code sample will fail to compile on beta but succeed on stable.

#![no_implicit_prelude]

fn _foo() {
    assert_eq!(10, 20);
}

cc @petrochenkov

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-compilerRelevant to the compiler 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

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions