rust/src/test/compile-fail/unique-unique-kind.rs
2011-10-25 15:56:55 +02:00

9 lines
106 B
Rust

// error-pattern: needed unique type
fn f<unique T>(i: T) {
}
fn main() {
let i = ~@100;
f(i);
}