rust/src/test/auxiliary/issue2378b.rs
2012-09-05 12:32:05 -07:00

12 lines
233 B
Rust

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