E0093
Literal that is not closed
ErrorA char literal ends with a ' on the line it starts on, and a string literal with a " on the line it starts on, interpolations included. A line break or the end of the file before that quote is an error, reported at the opening quote. Write \n for a line break in a string. A { starts an interpolation, so in "x{" the second " opens a new literal inside it; write \{ for a literal brace.
Why
The compiler cannot tell where the literal should have ended, so it offers no fix.
Broken
fn main() {
let c = 'a
print(c)
}
What sisu says
error[E0093]: `char` literal is not closed --> E0093.sisu:2:13 | 2 | let c = 'a | ^ sisu: 1 error sisu: for more on a code, run `sisu explain <code>`: E0093
Fixed
fn main() {
let c = 'a'
print(c)
}
Sisu