2011-06-30 16:03:07 -07:00
|
|
|
// 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 {
|
2012-09-21 18:10:45 -07:00
|
|
|
#[legacy_exports];
|
2012-09-07 18:08:21 -07:00
|
|
|
use core::vec;
|
2012-06-29 16:26:56 -07:00
|
|
|
fn f() -> ~[int] { vec::from_elem(1u, 0) }
|
2011-06-30 16:03:07 -07:00
|
|
|
}
|
|
|
|
|
2011-08-10 09:27:22 -07:00
|
|
|
fn main() { let x = m::f(); }
|