2012-05-14 00:12:58 -05:00
|
|
|
use issue2378a;
|
|
|
|
|
|
|
|
import issue2378a::maybe;
|
|
|
|
import issue2378a::methods;
|
|
|
|
|
|
|
|
type two_maybes<T> = {a: maybe<T>, b: maybe<T>};
|
|
|
|
|
|
|
|
impl methods<T:copy> for two_maybes<T> {
|
2012-06-29 18:26:56 -05:00
|
|
|
fn ~[](idx: uint) -> (T, T) {
|
2012-05-14 00:12:58 -05:00
|
|
|
(self.a[idx], self.b[idx])
|
|
|
|
}
|
|
|
|
}
|