2011-04-24 18:40:01 -05:00
|
|
|
// error-pattern: unresolved name
|
|
|
|
|
|
|
|
mod foo {
|
2011-07-27 07:19:39 -05:00
|
|
|
export x;
|
2011-04-24 18:40:01 -05:00
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
fn x() { bar::x(); }
|
2011-04-24 18:40:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
mod bar {
|
2011-07-27 07:19:39 -05:00
|
|
|
export y;
|
2011-04-24 18:40:01 -05:00
|
|
|
|
2012-08-22 19:24:52 -05:00
|
|
|
fn x() { debug!("x"); }
|
2011-04-24 18:40:01 -05:00
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
fn y() { }
|
2011-04-24 18:40:01 -05:00
|
|
|
}
|
|
|
|
|
2011-08-19 17:16:48 -05:00
|
|
|
fn main() { foo::x(); }
|