auto merge of #7325 : artagnon/rust/resolve-module, r=cmr
Fix #7322. I started out with a band-aid approach to special-case the duplicate module error using `is_duplicate_module`, but thought this would be better in the long term.
This commit is contained in:
commit
4967bd0508
2 changed files with 28 additions and 14 deletions
|
|
@ -10,6 +10,6 @@
|
|||
|
||||
pub mod a {}
|
||||
|
||||
pub mod a {} //~ ERROR duplicate definition of type `a`
|
||||
pub mod a {} //~ ERROR duplicate definition of module `a`
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue