summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/needless_raw_string.fixed
blob: b36912efbb2d4b435ee152b144d99aafbdadc298 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@run-rustfix
#![allow(clippy::needless_raw_string_hashes, clippy::no_effect, unused)]
#![warn(clippy::needless_raw_strings)]
#![feature(c_str_literals)]

fn main() {
    "aaa";
    r#""aaa""#;
    r#"\s"#;
    b"aaa";
    br#""aaa""#;
    br#"\s"#;
    // currently disabled: https://github.com/rust-lang/rust/issues/113333
    // cr#"aaa"#;
    // cr#""aaa""#;
    // cr#"\s"#;
}