Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 8 lines (6 sloc) 0.212 kb
60ae159 @marijnh Switch to new param kind bound syntax
marijnh authored
1 fn get_third<T: copy>(t: (T, T, T)) -> T { let (_, _, x) = t; ret x; }
1570949 @marijnh Re-add some deleted tuple tests
marijnh authored
2
3 fn main() {
f0dfbe7 @graydon Register new snapshots, purge log_err and log_full in favour of log(...)...
graydon authored
4 log(debug, get_third((1, 2, 3)));
1570949 @marijnh Re-add some deleted tuple tests
marijnh authored
5 assert (get_third((1, 2, 3)) == 3);
6 assert (get_third((5u8, 6u8, 7u8)) == 7u8);
3520499 @erickt Port the tests to the decl foo<T> syntax.
erickt authored
7 }
Something went wrong with that request. Please try again.