E1023

E1023#

The body of this try expression never raises any error.

Erroneous example#

fn main {
  try {
    println("Hello, world!")
  } catch {
    _ => println("Error")
  }
}

Suggestion#

Remove the try expression:

fn main {
  println("Hello, world!")
}