e5fccf927d
Instead of linking to the old Rust Reference site on static.rust-lang.org, link to the current website doc.rust-lang.org/stable/reference instead in diagnostic about incorrect literals.
8 lines
352 B
Rust
8 lines
352 B
Rust
fn main() {
|
|
let ok = r"ab\[c";
|
|
let bad = "ab\[c";
|
|
//~^ ERROR unknown character escape: `[`
|
|
//~| HELP for more information, visit <https://doc.rust-lang.org/stable/reference/expressions/literal-expr.html>
|
|
//~| HELP if you meant to write a literal backslash (perhaps escaping in a regular expression), consider a raw string literal
|
|
}
|