summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/needless_raw_string.fixed
blob: 4ea711fd67a14cb96cf7661b3cbb664f43a0396a (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
25
#![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"#;
    c"aaa";
    cr#""aaa""#;
    cr#"\s"#;

    "
        a
        multiline
        string
    ";

    "no hashes";
    b"no hashes";
    c"no hashes";
}