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 {
|
2011-07-27 14:19:39 +02:00
|
|
|
use std;
|
2011-08-15 16:38:23 -07:00
|
|
|
import std::vec;
|
|
|
|
fn f() -> [int] { vec::init_elt(0, 1u) }
|
2011-06-30 16:03:07 -07:00
|
|
|
}
|
|
|
|
|
2011-08-10 09:27:22 -07:00
|
|
|
fn main() { let x = m::f(); }
|