summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/mod-1.rs
blob: 427a355b6bee0920517137ee772e2a1ee289aedd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Deeply indented modules.

  mod foo { mod bar { mod baz {} } }

mod foo {
    mod bar {
    mod baz {
    fn foo() { bar() }
    }
    }

    mod qux {

    }
}

mod boxed { pub use std::boxed::{Box, HEAP}; }

pub  mod x {
        pub fn freopen(filename: *const c_char,
                   mode: *const c_char,
                     mode2: *const c_char,
                   mode3: *const c_char,
                   file: *mut FILE)
                   -> *mut FILE{}
}

  mod    y    { // sup boooooiiii
   }