summary refs log tree commit diff
path: root/src/test/run-pass/issue-2445-b.rs
blob: 4fd6e5e053067133d833bfb3827424ee7f36055b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class c1<T: copy> {
  let x: T;
  new(x: T) {self.x = x;}

    fn f1(x: int) {
    }
}

impl i1<T: copy> for c1<T> {
    fn f2(x: int) {
    }
}


fn main() {
    c1::<int>(3).f1(4);
    c1::<int>(3).f2(4);
}