askama/testing/tests/ui/raw-prefix.stderr
René Kijewski 1f3c926c58 parser: r#self is not a valid raw identifier in macro calls
It's not a valid raw identifier anywhere, actually, but the other cases
(in a path, as a field name, as a macro name) were already handled.

Resolves <https://issues.oss-fuzz.com/issues/435218013>.
2025-07-31 18:46:35 +02:00

200 lines
6.0 KiB
Plaintext

error: cstring literals must not contain NUL characters
--> <source attribute>:1:6
"cr#\"\0\"#) }}"
--> tests/ui/raw-prefix.rs:9:14
|
9 | source = "{{ z!(cr#\"\0\"#) }}",
| ^^^^^^^^^^^^^^^^^^^^^^
error: cstring literals must not contain NUL characters
--> <source attribute>:1:6
"cr##\"\0\"##) }}"
--> tests/ui/raw-prefix.rs:16:14
|
16 | source = "{{ z!(cr##\"\0\"##) }}",
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: cstring literals must not contain NUL characters
--> <source attribute>:1:6
"cr###\"\0\"###) }}"
--> tests/ui/raw-prefix.rs:23:14
|
23 | source = "{{ z!(cr###\"\0\"###) }}",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: binary string literals must not contain non-ASCII characters
--> <source attribute>:1:6
"br#\"😶\u{200d}🌫\u{fe0f}\"#) }}"
--> tests/ui/raw-prefix.rs:32:14
|
32 | source = "{{ z!(br#\"😶🌫️\"#) }}",
| ^^^^^^^^^^^^^^^^^^^^^^^
error: binary string literals must not contain non-ASCII characters
--> <source attribute>:1:6
"br##\"😶\u{200d}🌫\u{fe0f}\"##) }}"
--> tests/ui/raw-prefix.rs:39:14
|
39 | source = "{{ z!(br##\"😶🌫️\"##) }}",
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: binary string literals must not contain non-ASCII characters
--> <source attribute>:1:6
"br###\"😶\u{200d}🌫\u{fe0f}\"###) }}"
--> tests/ui/raw-prefix.rs:46:14
|
46 | source = "{{ z!(br###\"😶🌫️\"###) }}",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: reserved prefix `br#`, only `r#` is allowed with raw identifiers
--> <source attribute>:1:6
"br#async) }}"
--> tests/ui/raw-prefix.rs:55:14
|
55 | source = "{{ z!(br#async) }}",
| ^^^^^^^^^^^^^^^^^^^^
error: reserved prefix `cr#`, only `r#` is allowed with raw identifiers
--> <source attribute>:1:6
"cr#async) }}"
--> tests/ui/raw-prefix.rs:62:14
|
62 | source = "{{ z!(cr#async) }}",
| ^^^^^^^^^^^^^^^^^^^^
error: only one `#` is allowed in raw identifier delimitation
--> <source attribute>:1:6
"r##async) }}"
--> tests/ui/raw-prefix.rs:69:14
|
69 | source = "{{ z!(r##async) }}",
| ^^^^^^^^^^^^^^^^^^^^
error: reserved prefix `br#`, only `r#` is allowed with raw identifiers
--> <source attribute>:1:6
"br##async) }}"
--> tests/ui/raw-prefix.rs:76:14
|
76 | source = "{{ z!(br##async) }}",
| ^^^^^^^^^^^^^^^^^^^^^
error: reserved prefix `cr#`, only `r#` is allowed with raw identifiers
--> <source attribute>:1:6
"cr##async) }}"
--> tests/ui/raw-prefix.rs:83:14
|
83 | source = "{{ z!(cr##async) }}",
| ^^^^^^^^^^^^^^^^^^^^^
error: reserved prefix `hello#`
--> <source attribute>:1:6
"hello#world) }}"
--> tests/ui/raw-prefix.rs:90:14
|
90 | source = "{{ z!(hello#world) }}",
| ^^^^^^^^^^^^^^^^^^^^^^^
error: reserved prefix `hello#`
--> <source attribute>:1:6
"hello##world) }}"
--> tests/ui/raw-prefix.rs:97:14
|
97 | source = "{{ z!(hello##world) }}",
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: a maximum of 255 hashes `#` are allowed with raw strings
--> testing/templates/macro-call-raw-string-many-hashes.html:1:6
"hello###########################################################################"...
--> tests/ui/raw-prefix.rs:105:19
|
105 | #[template(path = "macro-call-raw-string-many-hashes.html")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: you are missing a space to separate two string literals
--> <source attribute>:1:9
"r#\"\"#) }}"
--> tests/ui/raw-prefix.rs:112:21
|
112 | #[template(source = r##"{{ z!(r""r#""#) }}"##, ext = "txt")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: you are missing a space to separate two string literals
--> <source attribute>:1:11
"x#\"\") }}"
--> tests/ui/raw-prefix.rs:116:21
|
116 | #[template(source = r##"{{ z!(r#""#x#"") }}"##, ext = "txt")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: you are missing a space to separate two string literals
--> <source attribute>:1:9
"r#\"\"#) }}"
--> tests/ui/raw-prefix.rs:120:21
|
120 | #[template(source = r##"{{ z!(c""r#""#) }}"##, ext = "txt")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: `crate` cannot be a raw identifier
--> <source attribute>:1:8
"crate) }}"
--> tests/ui/raw-prefix.rs:129:14
|
129 | source = "{{ z!(r#crate) }}",
| ^^^^^^^^^^^^^^^^^^^
error: `self` cannot be a raw identifier
--> <source attribute>:1:8
"self) }}"
--> tests/ui/raw-prefix.rs:136:14
|
136 | source = "{{ z!(r#self) }}",
| ^^^^^^^^^^^^^^^^^^
error: `Self` cannot be a raw identifier
--> <source attribute>:1:8
"Self) }}"
--> tests/ui/raw-prefix.rs:143:14
|
143 | source = "{{ z!(r#Self) }}",
| ^^^^^^^^^^^^^^^^^^
error: `super` cannot be a raw identifier
--> <source attribute>:1:8
"super) }}"
--> tests/ui/raw-prefix.rs:150:14
|
150 | source = "{{ z!(r#super) }}",
| ^^^^^^^^^^^^^^^^^^^
error: only one `#` is allowed in raw identifier delimitation
--> <source attribute>:1:6
"r##crate) }}"
--> tests/ui/raw-prefix.rs:157:14
|
157 | source = "{{ z!(r##crate) }}",
| ^^^^^^^^^^^^^^^^^^^^
error: only one `#` is allowed in raw identifier delimitation
--> <source attribute>:1:6
"r##self) }}"
--> tests/ui/raw-prefix.rs:164:14
|
164 | source = "{{ z!(r##self) }}",
| ^^^^^^^^^^^^^^^^^^^
error: only one `#` is allowed in raw identifier delimitation
--> <source attribute>:1:6
"r##Self) }}"
--> tests/ui/raw-prefix.rs:171:14
|
171 | source = "{{ z!(r##Self) }}",
| ^^^^^^^^^^^^^^^^^^^
error: only one `#` is allowed in raw identifier delimitation
--> <source attribute>:1:6
"r##super) }}"
--> tests/ui/raw-prefix.rs:178:14
|
178 | source = "{{ z!(r##super) }}",
| ^^^^^^^^^^^^^^^^^^^^