add needless_raw_string_hashes lint

add semicolon in doctest
This commit is contained in:
Centri3 2023-06-03 18:07:36 -05:00 committed by Catherine
parent ecdea8cdd3
commit 1bf74fc303
18 changed files with 216 additions and 22 deletions

View file

@ -0,0 +1,19 @@
//@run-rustfix
#![allow(clippy::no_effect, unused)]
#![warn(clippy::needless_raw_string_hashes)]
#![feature(c_str_literals)]
fn main() {
r#"aaa"#;
r##"Hello "world"!"##;
r######" "### "## "# "######;
r######" "aa" "# "## "######;
br#"aaa"#;
br##"Hello "world"!"##;
br######" "### "## "# "######;
br######" "aa" "# "## "######;
cr#"aaa"#;
cr##"Hello "world"!"##;
cr######" "### "## "# "######;
cr######" "aa" "# "## "######;
}