Skip to content

Commit 82b2989

Browse files
committed
More raw string tests
1 parent c15f86b commit 82b2989

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
fn main() {
2+
let x = r###"here's a long string"# "# "##;
3+
//~^ ERROR unterminated raw string
4+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error[E0748]: unterminated raw string
2+
--> $DIR/raw-string-2.rs:2:13
3+
|
4+
LL | let x = r###"here's a long string"# "# "##;
5+
| ^ unterminated raw string -- help: consider terminating the string here: `###`
6+
|
7+
= note: this raw string should be terminated with `"###`
8+
9+
error: aborting due to previous error
10+
11+
For more information about this error, try `rustc --explain E0748`.

src/test/ui/parser/raw/raw_string.stderr renamed to src/test/ui/parser/raw/raw-string.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0748]: unterminated raw string
2-
--> $DIR/raw_string.rs:2:13
2+
--> $DIR/raw-string.rs:2:13
33
|
44
LL | let x = r##"lol"#;
55
| ^ - help: consider terminating the string here: `##`

0 commit comments

Comments
 (0)