about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/needless_raw_string.fixed
blob: 1a9c601c462ba563e4f897233f7aa0b31d16f17a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#![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";
}