summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/needless_raw_string.rs
blob: 8f48e7dab2a6ef53c2e518d9cde6f7dddf1b0076 (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() {
    r#"aaa"#;
    r#""aaa""#;
    r#"\s"#;
    br#"aaa"#;
    br#""aaa""#;
    br#"\s"#;
    // currently disabled: https://github.com/rust-lang/rust/issues/113333
    // cr#"aaa"#;
    // cr#""aaa""#;
    // cr#"\s"#;
}