]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/needless_raw_string_hashes.fixed
New upstream version 1.74.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / needless_raw_string_hashes.fixed
1 #![allow(clippy::no_effect, unused)]
2 #![warn(clippy::needless_raw_string_hashes)]
3 #![feature(c_str_literals)]
4
5 fn main() {
6 r"\aaa";
7 r#"Hello "world"!"#;
8 r####" "### "## "# "####;
9 r###" "aa" "# "## "###;
10 br"\aaa";
11 br#"Hello "world"!"#;
12 br####" "### "## "# "####;
13 br###" "aa" "# "## "###;
14 cr"\aaa";
15 cr#"Hello "world"!"#;
16 cr####" "### "## "# "####;
17 cr###" "aa" "# "## "###;
18
19 r"
20 \a
21 multiline
22 string
23 ";
24
25 r"rust";
26 r"hello world";
27 }