rust/tests/ui/modules/mod-view-items.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
336 B
Rust
Raw Normal View History

// 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() }
}
2013-08-17 15:37:42 +00:00
pub fn main() { let _x = m::f(); }