]> git.lizzy.rs Git - rust.git/blob - tests/ui/modules/mod-view-items.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / modules / mod-view-items.rs
1 // run-pass
2 // Test view items inside non-file-level mods
3
4 // This is a regression test for an issue where we were failing to
5 // pretty-print such view items. If that happens again, this should
6 // begin failing.
7
8 // pretty-expanded FIXME #23616
9
10 mod m {
11     pub fn f() -> Vec<isize> { Vec::new() }
12 }
13
14 pub fn main() { let _x = m::f(); }