2011-04-24 19:40:01 -04:00
|
|
|
// error-pattern: unresolved name
|
|
|
|
|
|
|
|
mod foo {
|
2011-07-27 14:19:39 +02:00
|
|
|
export x;
|
2011-04-24 19:40:01 -04:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
fn x() { bar::x(); }
|
2011-04-24 19:40:01 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
mod bar {
|
2011-07-27 14:19:39 +02:00
|
|
|
export y;
|
2011-04-24 19:40:01 -04:00
|
|
|
|
2011-12-22 14:42:52 -08:00
|
|
|
fn x() { #debug("x"); }
|
2011-04-24 19:40:01 -04:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
fn y() { }
|
2011-04-24 19:40:01 -04:00
|
|
|
}
|
|
|
|
|
2011-08-19 15:16:48 -07:00
|
|
|
fn main() { foo::x(); }
|