T003error

Invalid escape sequence

A rune literal contains an escape sequence that is not valid.

Rune literals such as r'\n' accept the usual Go escapes. Anything else after the backslash is rejected.

Use a valid escape, such as \n, \t, \\ or \', or write the character directly.

$ piko explain T003

Build output ends each diagnostic with a link to this page, and editors using the Piko language server link the code under the squiggle. Look for CodeInvalidEscapeSequence in Piko's source to see where it is reported.