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