/src/test/run-pass/type-in-nested-module.rs

http://github.com/jruderman/rust · Rust · 11 lines · 7 code · 4 blank · 0 comment · 0 complexity · 4095723d3082af52af5bb7950922b5b3 MD5 · raw file

  1. mod a {
  2. mod b {
  3. type t = int;
  4. fn foo() { let x: t = 10; }
  5. }
  6. }
  7. fn main() { }