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
-
13
1
error: 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
15
3
|
16
4
LL | #"ok3!"#;
17
5
| ^^^^^^^^
@@ -23,7 +11,7 @@ LL | # "ok3!"#;
23
11
| +
24
12
25
13
error: 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
27
15
|
28
16
LL | #"ok4!"##;
29
17
| ^^^^^^^^
@@ -35,7 +23,7 @@ LL | # "ok4!"##;
35
23
| +
36
24
37
25
error: 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
39
27
|
40
28
LL | #"ok5!"###;
41
29
| ^^^^^^^^
@@ -46,18 +34,6 @@ help: consider inserting whitespace here
46
34
LL | # "ok5!"###;
47
35
| +
48
36
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
-
61
37
error: too many `#` when terminating raw string
62
38
--> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:8:14
63
39
|
@@ -66,23 +42,25 @@ LL | r#"ok1!"##;
66
42
| |
67
43
| this raw string started with 1 `#`
68
44
69
- error: expected one of `.`, `;`, `?`, `}`, or an operator, found `##`
45
+ error: too many `#` when terminating raw string
70
46
--> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:14:14
71
47
|
72
48
LL | r#"ok2!"###;
73
- | ^^ expected one of `.`, `;`, `?`, `}`, or an operator
49
+ | ---------^^ help: remove the extra `#`s
50
+ | |
51
+ | this raw string started with 1 `#`
74
52
75
53
error: 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
77
55
|
78
56
LL | #"ok4!"##;
79
57
| ^ expected one of `.`, `;`, `?`, `}`, or an operator
80
58
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
83
61
|
84
62
LL | #"ok5!"###;
85
- | ^^ expected one of `.`, `;`, `?`, `}`, or an operator
63
+ | ^ expected one of `.`, `;`, `?`, `}`, or an operator
86
64
87
- error: aborting due to 9 previous errors
65
+ error: aborting due to 7 previous errors
88
66
0 commit comments