2011-06-30 18:03:07 -05: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 07:19:39 -05:00
|
|
|
use std;
|
2011-12-13 18:25:51 -06:00
|
|
|
import vec;
|
2012-06-29 18:26:56 -05:00
|
|
|
fn f() -> ~[int] { vec::from_elem(1u, 0) }
|
2011-06-30 18:03:07 -05:00
|
|
|
}
|
|
|
|
|
2011-08-10 11:27:22 -05:00
|
|
|
fn main() { let x = m::f(); }
|