rust/src/test/compile-fail/resource-let2.rs
2011-09-26 22:00:15 -07:00

9 lines
110 B
Rust

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