E0102

A {...} hole in a string that holds more than a name or a field path, such as {n + 1}. Compute the value with let first.

Machine-applicable fix: none.

Example

This program fails with E0102.

fn main() {
    let n = 1
    let text = "next is {n + 1}"
}

Fixed

The same program, fixed.

fn main() {
    let n = 1
    let next = n + 1
    let text = "next is {next}"
}

Listed in the checker notes. oskac explain E0102 prints this entry offline.

All error codes