E0037

E0037#

Warning name: unused_block_label

The block or loop label name is never used.

Erroneous example#

///|
fn main {
  let mut sum = 0
  let input = [1, 2, 3]
  read~: for item in input {
    sum += item
  }
  println(sum)
}

Suggestion#

Remove the unused label.

///|
fn main {
  let mut sum = 0
  let input = [1, 2, 3]
  for item in input {
    sum += item
  }
  println(sum)
}