2023-07-02 12:35:19 +00:00
|
|
|
#![allow(clippy::no_effect, unused)]
|
|
|
|
#![warn(clippy::needless_raw_string_hashes)]
|
|
|
|
|
|
|
|
fn main() {
|
2023-09-12 16:13:53 +00:00
|
|
|
r#"\aaa"#;
|
2023-07-02 12:35:19 +00:00
|
|
|
r##"Hello "world"!"##;
|
|
|
|
r######" "### "## "# "######;
|
|
|
|
r######" "aa" "# "## "######;
|
2023-09-12 16:13:53 +00:00
|
|
|
br#"\aaa"#;
|
2023-07-02 12:35:19 +00:00
|
|
|
br##"Hello "world"!"##;
|
|
|
|
br######" "### "## "# "######;
|
|
|
|
br######" "aa" "# "## "######;
|
2023-09-12 16:13:53 +00:00
|
|
|
cr#"\aaa"#;
|
|
|
|
cr##"Hello "world"!"##;
|
|
|
|
cr######" "### "## "# "######;
|
|
|
|
cr######" "aa" "# "## "######;
|
|
|
|
|
|
|
|
r#"
|
|
|
|
\a
|
|
|
|
multiline
|
|
|
|
string
|
|
|
|
"#;
|
2023-09-25 09:28:58 +00:00
|
|
|
|
|
|
|
r###"rust"###;
|
|
|
|
r#"hello world"#;
|
2023-07-02 12:35:19 +00:00
|
|
|
}
|
2024-10-05 13:58:30 +00:00
|
|
|
|
|
|
|
fn issue_13503() {
|
|
|
|
println!(r"SELECT * FROM posts");
|
|
|
|
println!(r#"SELECT * FROM posts"#);
|
|
|
|
println!(r##"SELECT * FROM "posts""##);
|
|
|
|
println!(r##"SELECT * FROM "posts""##);
|
|
|
|
|
|
|
|
// Test arguments as well
|
|
|
|
println!("{}", r"foobar".len());
|
|
|
|
}
|