aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/export-boot.rs
diff options
context:
space:
mode:
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);
+}