From 459b0ec8339da2b7ba2f76c3fd110f5b3e971a73 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sun, 24 Apr 2011 19:40:01 -0400 Subject: Implement simple module export --- src/test/compile-fail/export-boot.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/test/compile-fail/export-boot.rs (limited to 'src/test/compile-fail/export-boot.rs') diff --git a/src/test/compile-fail/export-boot.rs b/src/test/compile-fail/export-boot.rs new file mode 100644 index 00000000..7a9fc776 --- /dev/null +++ b/src/test/compile-fail/export-boot.rs @@ -0,0 +1,19 @@ +// xfail-stage0 +// 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); +} -- cgit v1.2.3