Add testcase I meant to add in 9ee3475e09
.
This commit is contained in:
parent
c0955f0370
commit
26817cbb08
1 changed files with 11 additions and 0 deletions
11
src/test/run-pass/type-in-nested-module.rs
Normal file
11
src/test/run-pass/type-in-nested-module.rs
Normal file
|
@ -0,0 +1,11 @@
|
|||
mod a {
|
||||
mod b {
|
||||
type t = int;
|
||||
fn foo() {
|
||||
let t x = 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
}
|
Loading…
Reference in a new issue