Tin

Examples · learn/08-collections · 141 of 339

out-of-bounds.panics

examples/learn/08-collections/out-of-bounds.panics.tintin run examples/learn/08-collections/out-of-bounds.panics.tin
fn main() {
  let xs = [1, 2, 3]
  var i = 0
  while true {
    print(xs[i])
    i += 1
  }
}