Skip to content

env! has a completely undocumented optional second argument for setting the error message #48044

Closed
@ExpHP

Description

@ExpHP
fn main() {
    env!(); //~ ERROR env! takes 1 or 2 arguments
}

...or 2 arguments? 😐

fn main() {
    env!("testestest", "eh??"); //~ ERROR eh??
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-bugCategory: This is a bug.T-libs-apiRelevant to the library API 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