diff --git a/src/test/run-pass/type-in-nested-module.rs b/src/test/run-pass/type-in-nested-module.rs new file mode 100644 index 00000000000..6eaff11e570 --- /dev/null +++ b/src/test/run-pass/type-in-nested-module.rs @@ -0,0 +1,11 @@ +mod a { + mod b { + type t = int; + fn foo() { + let t x = 10; + } + } +} + +fn main() { +} \ No newline at end of file