mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 00:20:36 +00:00
33 lines
571 B
Rust
33 lines
571 B
Rust
#![allow(clippy::needless_raw_string_hashes, clippy::no_effect, unused)]
|
|
#![warn(clippy::needless_raw_strings)]
|
|
|
|
fn main() {
|
|
"aaa";
|
|
r#""aaa""#;
|
|
r#"\s"#;
|
|
b"aaa";
|
|
br#""aaa""#;
|
|
br#"\s"#;
|
|
c"aaa";
|
|
cr#""aaa""#;
|
|
cr#"\s"#;
|
|
|
|
"
|
|
a
|
|
multiline
|
|
string
|
|
";
|
|
|
|
"no hashes";
|
|
b"no hashes";
|
|
c"no hashes";
|
|
}
|
|
|
|
fn issue_13503() {
|
|
println!("SELECT * FROM posts");
|
|
println!("SELECT * FROM posts");
|
|
println!(r##"SELECT * FROM "posts""##);
|
|
|
|
// Test arguments as well
|
|
println!("{}", "foobar".len());
|
|
}
|