use issue2378a; import issue2378a::maybe; import issue2378a::methods; type two_maybes = {a: maybe, b: maybe}; impl methods for two_maybes { fn ~[](idx: uint) -> (T, T) { (self.a[idx], self.b[idx]) } }