summary refs log tree commit diff
path: root/src/test/compile-fail/enum-and-module-in-same-scope.rs
AgeCommit message (Collapse)AuthorLines
2014-07-07librustc: Disallow modules and types from having the same name.Patrick Walton-0/+19
This will break code that looks like: struct Foo { ... } mod Foo { ... } Change this code to: struct Foo { ... } impl Foo { ... } Or rename the module. Closes #15205. [breaking-change]