rust/src/test/run-pass/mod-view-items.rs
2012-03-13 11:07:22 -07:00

14 lines
317 B
Rust

// 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.
mod m {
use std;
import vec;
fn f() -> [int] { vec::from_elem(1u, 0) }
}
fn main() { let x = m::f(); }