Skip to content

Bogus error when creating for an impl for a nonexistent type #8767

Closed
@jdm

Description

@jdm
impl B {
}

fn main() {
}
/tmp/foopy.rs:1:5: 1:6 error: found value name used as a type: def_mod({crate: 0, node: 3})
/tmp/foopy.rs:1 impl B {
                     ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions