aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorRoy Frostig <[email protected]>2010-06-29 16:13:26 -0700
committerRoy Frostig <[email protected]>2010-06-29 16:13:26 -0700
commite692ccfb0c768658f13d3cf7887efd53e14f0416 (patch)
treee0828815c4fc90c25dcc3124f3bce3977294752c /src/test
parentMerge branch 'master' of [email protected]:graydon/rust (diff)
downloadrust-e692ccfb0c768658f13d3cf7887efd53e14f0416.tar.xz
rust-e692ccfb0c768658f13d3cf7887efd53e14f0416.zip
Add (XFAILed) testcase for typechecker issue where fns-in-mods appear to lose their type parameters over the course of the typechecking pass.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/generic-fn-twice.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/run-pass/generic-fn-twice.rs b/src/test/run-pass/generic-fn-twice.rs
new file mode 100644
index 00000000..0c6257f8
--- /dev/null
+++ b/src/test/run-pass/generic-fn-twice.rs
@@ -0,0 +1,10 @@
+// -*- rust -*-
+
+mod foomod {
+ fn foo[T]() {}
+}
+
+fn main() {
+ foomod.foo[int]();
+ foomod.foo[int]();
+}