rust/src/test/compile-fail/resource-let2.rs

9 lines
110 B
Rust
Raw Normal View History

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