2012-08-28 12:58:16 -05:00
|
|
|
import dvec::DVec;
|
2012-06-25 15:16:47 -05:00
|
|
|
|
2012-08-15 20:46:55 -05:00
|
|
|
struct c1<T: copy> {
|
2012-06-25 15:16:47 -05:00
|
|
|
let x: T;
|
|
|
|
new(x: T) {self.x = x;}
|
|
|
|
|
|
|
|
fn f1(x: T) {}
|
|
|
|
}
|
|
|
|
|
2012-08-07 20:10:06 -05:00
|
|
|
impl<T: copy> c1<T> {
|
2012-06-25 15:16:47 -05:00
|
|
|
fn f2(x: T) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
c1::<int>(3).f1(4);
|
|
|
|
c1::<int>(3).f2(4);
|
|
|
|
}
|