P0036

String.repeat was given a negative count. Spans the call.

Machine-applicable fix: none.

Example

This program fails with P0036.

fn main() {
    let line = "ab".repeat(-1)
}

Fixed

The same program, fixed.

fn main() {
    let line = "ab".repeat(3)
}

Listed in the runtime notes. oskac explain P0036 prints this entry offline.

All error codes