// error-pattern:this block must not have a result resource r(i: int) { true } fn main() { }