summary refs log tree commit diff
path: root/src/test/compile-fail/bad-method-typaram-kind.rs
blob: 9934702fdeaafd17e5ff8498a279b7877f597bb7 (plain)
1
2
3
4
5
6
7
8
9
10
fn foo<T>() {
    1u.bar::<T>(); //~ ERROR: missing `copy`
}

impl methods for uint {
    fn bar<T:copy>() {
    }
}

fn main() {}