Skip to content

Commit

Permalink
More raw string tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoh committed Mar 29, 2020
1 parent c15f86b commit 82b2989
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/test/ui/parser/raw/raw-string-2.rs
@@ -0,0 +1,4 @@
fn main() {
let x = r###"here's a long string"# "# "##;
//~^ ERROR unterminated raw string
}
11 changes: 11 additions & 0 deletions src/test/ui/parser/raw/raw-string-2.stderr
@@ -0,0 +1,11 @@
error[E0748]: unterminated raw string
--> $DIR/raw-string-2.rs:2:13
|
LL | let x = r###"here's a long string"# "# "##;
| ^ unterminated raw string -- help: consider terminating the string here: `###`
|
= note: this raw string should be terminated with `"###`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0748`.
File renamed without changes.
@@ -1,5 +1,5 @@
error[E0748]: unterminated raw string
--> $DIR/raw_string.rs:2:13
--> $DIR/raw-string.rs:2:13
|
LL | let x = r##"lol"#;
| ^ - help: consider terminating the string here: `##`
Expand Down

0 comments on commit 82b2989

Please sign in to comment.