rust/tests/ui/parser/raw/raw-str-unbalanced.rs
2023-01-11 09:32:08 +00:00

23 lines
409 B
Rust

static s: &'static str =
r#""## //~ ERROR too many `#` when terminating raw string
;
static s2: &'static str =
r#"
"#### //~ ERROR too many `#` when terminating raw string
;
const A: &'static str = r"" //~ ERROR expected `;`, found `#`
// Test
#[test]
fn test() {}
const B: &'static str = r""## //~ ERROR too many `#` when terminating raw string
// Test
#[test]
fn test2() {}
fn main() {}