Skip to content

cannot assign to nullary variant #2416

@nikomatsakis

Description

@nikomatsakis

I believe this ought to work, but you currently get an error about shadowing a variant:

enum foo { foo }

fn test(f: foo) {
    let foo = f;
}

fn main() {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions