aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/export-boot.rs
diff options
context:
space:
mode:
authorBrian Anderson <[email protected]>2011-04-24 19:40:01 -0400
committerBrian Anderson <[email protected]>2011-05-01 16:57:36 -0400
commit459b0ec8339da2b7ba2f76c3fd110f5b3e971a73 (patch)
treee9e7365d9eb768d7ec236d3ca47af0158831b1bf /src/test/compile-fail/export-boot.rs
parentStart splitting up Makefile.in (diff)
downloadrust-459b0ec8339da2b7ba2f76c3fd110f5b3e971a73.tar.xz
rust-459b0ec8339da2b7ba2f76c3fd110f5b3e971a73.zip
Implement simple module export
Diffstat (limited to 'src/test/compile-fail/export-boot.rs')
-rw-r--r--src/test/compile-fail/export-boot.rs19
1 files changed, 19 insertions, 0 deletions
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);
+}