summary refs log tree commit diff
path: root/src/test/compile-fail/unique-unique-kind.rs
blob: 8845e15721f9a52287a9e5b7a63b1d642a7b6eca (plain)
1
2
3
4
5
6
7
8
9
// error-pattern: instantiating a sendable type parameter with a copyable type

fn f<T: send>(i: T) {
}

fn main() {
    let i = ~@100;
    f(i);
}