Closed
Description
The following two type-definition/module conflicts cause errors:
enum Foo {}
mod Foo {}
struct Bar { x: bool }
mod Bar {}
But unit and tuple structs, due to the special-casing to check for value conflicts, end up not checking for module conflicts, resulting in the following two examples compiling:
struct Foo;
mod Foo {}
struct Bar(bool);
mod Bar {}