summary refs log tree commit diff
path: root/tests/ui/modules/mod-view-items.rs
blob: 462071b7b126e2ad072b06728dda38b00e53c4c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ run-pass
// Test view items inside non-file-level mods

// This is a regression test for an issue where we were failing to
// pretty-print such view items. If that happens again, this should
// begin failing.

//@ pretty-expanded FIXME #23616

mod m {
    pub fn f() -> Vec<isize> { Vec::new() }
}

pub fn main() { let _x = m::f(); }