diff options
| author | Rafael Ávila de Espíndola <[email protected]> | 2011-01-28 11:54:59 -0500 |
|---|---|---|
| committer | Rafael Ávila de Espíndola <[email protected]> | 2011-01-28 11:54:59 -0500 |
| commit | 3cac20dae3272728282466467cb0193d7dbbf00c (patch) | |
| tree | a257f43c91b257ce34eb8eff0d4839af8787075f /src/test | |
| parent | Add helper function for derived type descriptors. (diff) | |
| download | rust-3cac20dae3272728282466467cb0193d7dbbf00c.tar.xz rust-3cac20dae3272728282466467cb0193d7dbbf00c.zip | |
Correctly handle "import foo = bar.zed;".
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/import8.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/run-pass/import8.rs b/src/test/run-pass/import8.rs new file mode 100644 index 00000000..5031e984 --- /dev/null +++ b/src/test/run-pass/import8.rs @@ -0,0 +1,13 @@ +import foo.x; +import z = foo.x; + +mod foo { + fn x(int y) { + log y; + } +} + +fn main() { + x(10); + z(10); +} |