2022-02-14 14:21:43 -05:00
|
|
|
error: unknown character escape: `[`
|
|
|
|
--> $DIR/bad-escape-suggest-raw-string.rs:3:19
|
|
|
|
|
|
|
|
|
LL | let bad = "ab\[c";
|
|
|
|
| ^ unknown character escape
|
|
|
|
|
|
2023-06-10 14:46:11 -04:00
|
|
|
= help: for more information, visit <https://doc.rust-lang.org/reference/tokens.html#literals>
|
2022-02-14 14:21:43 -05:00
|
|
|
help: if you meant to write a literal backslash (perhaps escaping in a regular expression), consider a raw string literal
|
|
|
|
|
|
|
|
|
LL | let bad = r"ab\[c";
|
|
|
|
| ~~~~~~~~
|
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2022-02-14 14:21:43 -05:00
|
|
|
|