// error-pattern:mismatched types: expected `()` but found `bool` resource r(i: int) { true } fn main() { }