diff options
Diffstat (limited to 'src/test/ui/imports/import-from-missing.rs')
-rw-r--r-- | src/test/ui/imports/import-from-missing.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/imports/import-from-missing.rs b/src/test/ui/imports/import-from-missing.rs new file mode 100644 index 000000000..8eae70020 --- /dev/null +++ b/src/test/ui/imports/import-from-missing.rs @@ -0,0 +1,12 @@ +use spam::{ham, eggs}; //~ ERROR unresolved import `spam::eggs` [E0432] + //~^ no `eggs` in `spam` + +mod spam { + pub fn ham() { } +} + +fn main() { + ham(); + // Expect eggs to pass because the compiler inserts a fake name for it + eggs(); +} |