diff --git a/src/test/compile-fail/export-import.rs b/src/test/compile-fail/export-import.rs new file mode 100644 index 0000000000000..cfa27af3aafcc --- /dev/null +++ b/src/test/compile-fail/export-import.rs @@ -0,0 +1,19 @@ +// xfail-boot +// error-pattern: unresolved name + +import m.unexported; + +mod m { + export exported; + + fn exported() { + } + + fn unexported() { + } +} + + +fn main() { + unexported(); +}