1- error: reserved multi-hash token is forbidden
2- --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:14:14
3- |
4- LL | r#"ok2!"###;
5- | ^^
6- |
7- = note: sequences of two or more # are reserved for future use since Rust 2024
8- help: consider inserting whitespace here
9- |
10- LL | r#"ok2!"## #;
11- | +
12-
131error: invalid string literal
14- --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:20 :5
2+ --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:19 :5
153 |
164LL | #"ok3!"#;
175 | ^^^^^^^^
@@ -23,7 +11,7 @@ LL | # "ok3!"#;
2311 | +
2412
2513error: invalid string literal
26- --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:26 :5
14+ --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:25 :5
2715 |
2816LL | #"ok4!"##;
2917 | ^^^^^^^^
@@ -35,7 +23,7 @@ LL | # "ok4!"##;
3523 | +
3624
3725error: invalid string literal
38- --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:32 :5
26+ --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:31 :5
3927 |
4028LL | #"ok5!"###;
4129 | ^^^^^^^^
@@ -46,18 +34,6 @@ help: consider inserting whitespace here
4634LL | # "ok5!"###;
4735 | +
4836
49- error: reserved multi-hash token is forbidden
50- --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:32:13
51- |
52- LL | #"ok5!"###;
53- | ^^
54- |
55- = note: sequences of two or more # are reserved for future use since Rust 2024
56- help: consider inserting whitespace here
57- |
58- LL | #"ok5!"## #;
59- | +
60-
6137error: too many `#` when terminating raw string
6238 --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:8:14
6339 |
@@ -66,23 +42,25 @@ LL | r#"ok1!"##;
6642 | |
6743 | this raw string started with 1 `#`
6844
69- error: expected one of `.`, `;`, `?`, `}`, or an operator, found `##`
45+ error: too many `#` when terminating raw string
7046 --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:14:14
7147 |
7248LL | r#"ok2!"###;
73- | ^^ expected one of `.`, `;`, `?`, `}`, or an operator
49+ | ---------^^ help: remove the extra `#`s
50+ | |
51+ | this raw string started with 1 `#`
7452
7553error: expected one of `.`, `;`, `?`, `}`, or an operator, found `#`
76- --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:26 :13
54+ --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:25 :13
7755 |
7856LL | #"ok4!"##;
7957 | ^ expected one of `.`, `;`, `?`, `}`, or an operator
8058
81- error: expected one of `.`, `;`, `?`, `}`, or an operator, found `## `
82- --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:32 :13
59+ error: expected one of `.`, `;`, `?`, `}`, or an operator, found `#`
60+ --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:31 :13
8361 |
8462LL | #"ok5!"###;
85- | ^^ expected one of `.`, `;`, `?`, `}`, or an operator
63+ | ^ expected one of `.`, `;`, `?`, `}`, or an operator
8664
87- error: aborting due to 9 previous errors
65+ error: aborting due to 7 previous errors
8866
0 commit comments