1
- error: reserved multi-hash token is forbidden
2
- --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:6: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
- error: reserved multi-hash token is forbidden
14
- --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:9:14
15
- |
16
- LL | r#"ok3!"####;
17
- | ^^
18
- |
19
- = note: sequences of two or more # are reserved for future use since Rust 2024
20
- help: consider inserting whitespace here
21
- |
22
- LL | r#"ok3!"## ##;
23
- | +
24
-
25
1
error: invalid string literal
26
- --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:11 :5
2
+ --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:10 :5
27
3
|
28
4
LL | #"ok4!"#;
29
5
| ^^^^^^^^
@@ -35,15 +11,15 @@ LL | # "ok4!"#;
35
11
| +
36
12
37
13
error: invalid string literal
38
- --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:13 :5
14
+ --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:12 :5
39
15
|
40
- LL | #"ok5!"##;
16
+ LL | #"ok5!"##;
41
17
| ^^^^^^^^
42
18
|
43
19
= note: unprefixed guarded string literals are reserved for future use since Rust 2024
44
20
help: consider inserting whitespace here
45
21
|
46
- LL | # "ok5!"##;
22
+ LL | # "ok5!"##;
47
23
| +
48
24
49
25
error: invalid string literal
@@ -58,31 +34,35 @@ help: consider inserting whitespace here
58
34
LL | # "ok6!"###;
59
35
| +
60
36
61
- error: reserved multi-hash token is forbidden
62
- --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:15:13
63
- |
64
- LL | #"ok6!"###;
65
- | ^^
66
- |
67
- = note: sequences of two or more # are reserved for future use since Rust 2024
68
- help: consider inserting whitespace here
69
- |
70
- LL | #"ok6!"## #;
71
- | +
72
-
73
37
error: too many `#` when terminating raw string
74
38
--> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:4:14
75
39
|
76
- LL | r#"ok1!"##;
40
+ LL | r#"ok1!"##;
77
41
| ---------^ help: remove the extra `#`
78
42
| |
79
43
| this raw string started with 1 `#`
80
44
81
- error: expected one of `.`, `;`, `?`, `}`, or an operator, found `##`
45
+ error: too many `#` when terminating raw string
82
46
--> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:6:14
83
47
|
84
48
LL | r#"ok2!"###;
85
- | ^^ expected one of `.`, `;`, `?`, `}`, or an operator
49
+ | ---------^^ help: remove the extra `#`s
50
+ | |
51
+ | this raw string started with 1 `#`
52
+
53
+ error: too many `#` when terminating raw string
54
+ --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:8:14
55
+ |
56
+ LL | r#"ok3!"####;
57
+ | ---------^^^ help: remove the extra `#`s
58
+ | |
59
+ | this raw string started with 1 `#`
60
+
61
+ error: expected one of `.`, `;`, `?`, `}`, or an operator, found `#`
62
+ --> $DIR/reverved-guarded-string-too-many-terminators-issue-140618.rs:12:13
63
+ |
64
+ LL | #"ok5!"##;
65
+ | ^ expected one of `.`, `;`, `?`, `}`, or an operator
86
66
87
- error: aborting due to 8 previous errors
67
+ error: aborting due to 7 previous errors
88
68
0 commit comments