diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-08-16 15:21:30 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-08-17 11:04:56 -0700 |
| commit | cd54e7772040cd268f911e9dfd088ad5f659f552 (patch) | |
| tree | d12ac71b3f3ec50fe345d8064c87f8a5b44a9010 /src/test/compile-fail/import-from-missing.rs | |
| parent | c4ce463f3709c7a8a92941d2e4bfab6db5da550f (diff) | |
| download | rust-cd54e7772040cd268f911e9dfd088ad5f659f552.tar.gz rust-cd54e7772040cd268f911e9dfd088ad5f659f552.zip | |
Allow multiple imports in a single statement
Like so: import foo::{bar, baz};
Issue #817
Diffstat (limited to 'src/test/compile-fail/import-from-missing.rs')
| -rw-r--r-- | src/test/compile-fail/import-from-missing.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/compile-fail/import-from-missing.rs b/src/test/compile-fail/import-from-missing.rs new file mode 100644 index 00000000000..1e0b3869053 --- /dev/null +++ b/src/test/compile-fail/import-from-missing.rs @@ -0,0 +1,11 @@ +// error-pattern:unresolved import: eggs +import spam::{ham, eggs}; + +mod spam { + fn ham() {} +} + +fn main() { + ham(); + eggs(); +} \ No newline at end of file |
