Skip to content

compile error in expression position Β #11

@ModProg

Description

@ModProg

A function macro in expression position requires further consideration in regard to syntax.

A solution would be to expand to {compile_error!{ "error"} dummy + expr}

this is not valid in item/stmt position though, as it creates a new scope

Solution idea

Add expr(ssion) as a flag in the manyhow attribute, this will produce the extra wrapping in {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions