summary refs log tree commit diff
path: root/src/test/run-pass/issue-2550.rs
blob: 103d8589f3b0c38fb5f786c4e8b9af4d5e31e32e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class C {
    let x: uint;

    new(x: uint) {
        self.x = x;
    }
}

fn f<T:copy>(_x: T) {
}

#[warn(err_non_implicitly_copyable_typarams)]
fn main() {
    f(C(1u));
}