rust/src/test/compile-fail/unique-pinned-nocopy.rs

10 lines
117 B
Rust
Raw Normal View History

// error-pattern: mismatched kind
resource r(b: bool) {
}
fn main() {
let i = ~r(true);
let j;
j = i;
}