parent
27fe23dcaa
commit
ab86642e35
1 changed files with 3 additions and 3 deletions
|
@ -1,10 +1,10 @@
|
|||
|
||||
fn fst<T, U>(+pair: (T, U)) -> T {
|
||||
// FIXME #1546: Would rather write fst<T, U>(+pair: (T, U)) -> T
|
||||
fn fst<T:copy, U:copy>(pair: (T, U)) -> T {
|
||||
let (t, _) = pair;
|
||||
ret t;
|
||||
}
|
||||
|
||||
fn snd<T, U>(+pair: (T, U)) -> U {
|
||||
fn snd<T:copy, U:copy>(pair: (T, U)) -> U {
|
||||
let (_, u) = pair;
|
||||
ret u;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue