mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
15 lines
498 B
Plaintext
15 lines
498 B
Plaintext
error: unknown character escape: `[`
|
|
--> $DIR/bad-escape-suggest-raw-string.rs:3:19
|
|
|
|
|
LL | let bad = "ab\[c";
|
|
| ^ unknown character escape
|
|
|
|
|
= help: for more information, visit <https://doc.rust-lang.org/reference/tokens.html#literals>
|
|
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";
|
|
| ~~~~~~~~
|
|
|
|
error: aborting due to 1 previous error
|
|
|