aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <[email protected]>2011-01-19 16:13:33 -0500
committerRafael Ávila de Espíndola <[email protected]>2011-01-19 16:13:33 -0500
commit35d53b7eb17c17ac492aa67f843c94e8db1731e1 (patch)
treede6d3c190daaa01cb87018c63ec69d18255f6e13 /src/test
parentFold function output and argument types. With this change we fail to compile (diff)
downloadrust-35d53b7eb17c17ac492aa67f843c94e8db1731e1.tar.xz
rust-35d53b7eb17c17ac492aa67f843c94e8db1731e1.zip
Look at the type params of an item_ty when resolving.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/type-param.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/run-pass/type-param.rs b/src/test/run-pass/type-param.rs
new file mode 100644
index 00000000..9525190d
--- /dev/null
+++ b/src/test/run-pass/type-param.rs
@@ -0,0 +1,5 @@
+type lteq[T] = fn(&T a) -> bool;
+
+fn main(vec[str] args) {
+
+}