mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-29 05:51:32 +00:00
58 lines
1.9 KiB
Plaintext
58 lines
1.9 KiB
Plaintext
error: unexpected `,` character after `..`
|
|
note that in a named struct, `..` must come last to ignore other members
|
|
--> <source attribute>:2:20
|
|
", } = x -%}hello {{ a }}{%- endif -%}\n"
|
|
--> tests/ui/let_destructuring_has_rest.rs:9:21
|
|
|
|
|
9 | #[template(source = "
|
|
| _____________________^
|
|
10 | | {%- if let X { a, .., } = x -%}hello {{ a }}{%- endif -%}
|
|
11 | | ", ext = "html")]
|
|
| |_^
|
|
|
|
error: expected `,` for more members, or `}` as terminator
|
|
--> <source attribute>:2:17
|
|
".. } = x -%}hello {{ a }}{%- endif -%}\n"
|
|
--> tests/ui/let_destructuring_has_rest.rs:17:21
|
|
|
|
|
17 | #[template(source = "
|
|
| _____________________^
|
|
18 | | {%- if let X { a .. } = x -%}hello {{ a }}{%- endif -%}
|
|
19 | | ", ext = "html")]
|
|
| |_^
|
|
|
|
error: expected member, or `}` as terminator
|
|
--> <source attribute>:2:18
|
|
"1 } = x -%}hello {{ a }}{%- endif -%}\n"
|
|
--> tests/ui/let_destructuring_has_rest.rs:25:21
|
|
|
|
|
25 | #[template(source = "
|
|
| _____________________^
|
|
26 | | {%- if let X { a, 1 } = x -%}hello {{ a }}{%- endif -%}
|
|
27 | | ", ext = "html")]
|
|
| |_^
|
|
|
|
error: unexpected `,` character after `..`
|
|
note that in a named struct, `..` must come last to ignore other members
|
|
--> <source attribute>:2:20
|
|
", b } = x -%}hello {{ a }}{%- endif -%}\n"
|
|
--> tests/ui/let_destructuring_has_rest.rs:33:21
|
|
|
|
|
33 | #[template(source = "
|
|
| _____________________^
|
|
34 | | {%- if let X { a, .., b } = x -%}hello {{ a }}{%- endif -%}
|
|
35 | | ", ext = "html")]
|
|
| |_^
|
|
|
|
error: unexpected `,` character after `..`
|
|
note that in a named struct, `..` must come last to ignore other members
|
|
--> <source attribute>:2:17
|
|
", b } = x -%}hello {{ a }}{%- endif -%}\n"
|
|
--> tests/ui/let_destructuring_has_rest.rs:41:21
|
|
|
|
|
41 | #[template(source = "
|
|
| _____________________^
|
|
42 | | {%- if let X { .., b } = x -%}hello {{ a }}{%- endif -%}
|
|
43 | | ", ext = "html")]
|
|
| |_^
|