rust/src/test/compile-fail/export-boot.rs
Marijn Haverbeke 3816e57fd2 Downcase std modules again, move to :: for module dereferencing
This should be a snapshot transition.
2011-05-12 21:30:44 +02:00

21 lines
320 B
Rust

// xfail-stage0
// xfail-stage1
// xfail-stage2
// error-pattern: unknown module item
// rustboot has a different error message than rustc
// this test can die with rustboot, or rustc's error can change
mod foo {
export x;
fn x(int y) {
log y;
}
fn z(int y) {
log y;
}
}
fn main() {
foo::z(10);
}