2023-07-02 07:35:19 -05:00
|
|
|
#![allow(clippy::no_effect, unused)]
|
|
|
|
#![warn(clippy::needless_raw_string_hashes)]
|
|
|
|
|
|
|
|
fn main() {
|
2023-09-12 11:13:53 -05:00
|
|
|
r"\aaa";
|
2023-07-02 07:35:19 -05:00
|
|
|
r#"Hello "world"!"#;
|
|
|
|
r####" "### "## "# "####;
|
|
|
|
r###" "aa" "# "## "###;
|
2023-09-12 11:13:53 -05:00
|
|
|
br"\aaa";
|
2023-07-02 07:35:19 -05:00
|
|
|
br#"Hello "world"!"#;
|
|
|
|
br####" "### "## "# "####;
|
|
|
|
br###" "aa" "# "## "###;
|
2023-09-12 11:13:53 -05:00
|
|
|
cr"\aaa";
|
|
|
|
cr#"Hello "world"!"#;
|
|
|
|
cr####" "### "## "# "####;
|
|
|
|
cr###" "aa" "# "## "###;
|
|
|
|
|
|
|
|
r"
|
|
|
|
\a
|
|
|
|
multiline
|
|
|
|
string
|
|
|
|
";
|
2023-09-25 04:28:58 -05:00
|
|
|
|
|
|
|
r"rust";
|
|
|
|
r"hello world";
|
2023-07-02 07:35:19 -05:00
|
|
|
}
|
2024-10-05 08:58:30 -05: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());
|
|
|
|
}
|