]> git.proxmox.com Git - rustc.git/blame - src/tools/rustfmt/tests/target/mod-1.rs
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / rustfmt / tests / target / mod-1.rs
CommitLineData
f20569fa
XL
1// Deeply indented modules.
2
3mod foo {
4 mod bar {
5 mod baz {}
6 }
7}
8
9mod foo {
10 mod bar {
11 mod baz {
12 fn foo() {
13 bar()
14 }
15 }
16 }
17
18 mod qux {}
19}
20
21mod boxed {
22 pub use std::boxed::{Box, HEAP};
23}
24
25pub mod x {
26 pub fn freopen(
27 filename: *const c_char,
28 mode: *const c_char,
29 mode2: *const c_char,
30 mode3: *const c_char,
31 file: *mut FILE,
32 ) -> *mut FILE {
33 }
34}
35
36mod y { // sup boooooiiii
37}