E0037

E0037#

循环标签名称从未被使用。

错误示例#

///|
fn main {
  let mut sum = 0
  let input = [1, 2, 3]
  read~: loop input[:] {
    [] => break
    [head, .. tail] => {
      sum += head
      continue tail
    }
  }
  println(sum)
}

建议#

移除未使用的循环标签。

///|
fn main {
  let mut sum = 0
  let input = [1, 2, 3]
  loop input[:] {
    [] => break
    [head, .. tail] => {
      sum += head
      continue tail
    }
  }
  println(sum)
}