diff options
| author | Rafael Ávila de Espíndola <[email protected]> | 2011-01-11 14:19:53 -0500 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-01-11 13:59:52 -0800 |
| commit | 34643eeac83991d8f50d829218291e0592746241 (patch) | |
| tree | 18d251349caa8af9de79ba7c21c6f3032e97d33d /src/test | |
| parent | Fix two invalid import cases we were not detecting: (diff) | |
| download | rust-34643eeac83991d8f50d829218291e0592746241.tar.xz rust-34643eeac83991d8f50d829218291e0592746241.zip | |
Fix another import case we got wrong: The local environment should not
interfere with the import statements.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/import4.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/run-pass/import4.rs b/src/test/run-pass/import4.rs new file mode 100644 index 00000000..5b0cb9f3 --- /dev/null +++ b/src/test/run-pass/import4.rs @@ -0,0 +1,10 @@ +import zed.bar; +mod zed { + fn bar() { + log "bar"; + } +} +fn main(vec[str] args) { + auto zed = 42; + bar(); +} |