Skip to content

Conflicting type alias is reported as conflicting submodule #24081

Closed
@bvssvni

Description

@bvssvni

Playpen http://is.gd/YTFOov

use std::ops::Add;

type Add = Add;

fn main() {
}
<anon>:1:5: 1:18 error: import `Add` conflicts with existing submodule [E0256]
<anon>:1 use std::ops::Add;
             ^~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions