diff options
| author | Roy Frostig <[email protected]> | 2010-06-25 01:26:44 -0700 |
|---|---|---|
| committer | Roy Frostig <[email protected]> | 2010-06-25 01:26:44 -0700 |
| commit | 85a701c8f668fc03e6340682956e7ca7d9cf54bc (patch) | |
| tree | 4cb2349c7bdd01099566366cc8af1633b1924981 /src/test/compile-fail | |
| parent | Resolve and typecheck patterns in pattern alt redux. This time featuring way... (diff) | |
| download | rust-85a701c8f668fc03e6340682956e7ca7d9cf54bc.tar.xz rust-85a701c8f668fc03e6340682956e7ca7d9cf54bc.zip | |
Add testcases for item name conflict at the same path level.
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/item-name-overload.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/compile-fail/item-name-overload.rs b/src/test/compile-fail/item-name-overload.rs new file mode 100644 index 00000000..06429c76 --- /dev/null +++ b/src/test/compile-fail/item-name-overload.rs @@ -0,0 +1,8 @@ +// -*- rust -*- + +mod foo { + fn bar[T](T f) -> int { ret 17; } + type bar[U, T] = tup(int, U, T); +} + +fn main() {} |