mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
15 lines
338 B
Rust
15 lines
338 B
Rust
//@ 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(); }
|