aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/generic-bind.rs
diff options
context:
space:
mode:
authorBrian Anderson <[email protected]>2011-03-13 19:40:25 -0400
committerBrian Anderson <[email protected]>2011-03-13 19:40:25 -0400
commitbbb6836da003be71744b6e6ea7af1fd4674f8291 (patch)
treefc7780f767666cced8406818806216bee3863c91 /src/test/run-pass/generic-bind.rs
parentRemove extra blocks from the translation of expr_block (diff)
parentAdd llvmext/include to the list of include directories to hopefully put out t... (diff)
downloadrust-bbb6836da003be71744b6e6ea7af1fd4674f8291.tar.xz
rust-bbb6836da003be71744b6e6ea7af1fd4674f8291.zip
Merge branch 'master' into recursive-elseif
Conflicts: src/comp/middle/typeck.rs
Diffstat (limited to 'src/test/run-pass/generic-bind.rs')
-rw-r--r--src/test/run-pass/generic-bind.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/run-pass/generic-bind.rs b/src/test/run-pass/generic-bind.rs
index 61085eb5..ef1275e3 100644
--- a/src/test/run-pass/generic-bind.rs
+++ b/src/test/run-pass/generic-bind.rs
@@ -3,6 +3,8 @@ fn id[T](&T t) -> T {
}
fn main() {
- auto f = bind id[int](_);
- check (f(10) == 10);
+ auto t = tup(1,2,3,4,5,6,7);
+ check (t._5 == 6);
+ auto f1 = bind id[tup(int,int,int,int,int,int,int)](_);
+ check (f1(t)._5 == 6);
}