mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-30 06:21:13 +00:00
24 lines
891 B
Plaintext
24 lines
891 B
Plaintext
error: missing argument when calling macro `thrice`: `param1`
|
|
--> InvalidDefault1.html:4:2
|
|
"- call thrice() -%}{%- endcall -%}"
|
|
--> tests/ui/macro_default_value.rs:4:21
|
|
|
|
|
4 | #[template(source = "{%- macro thrice(param1, param2=0) -%}
|
|
| _____________________^
|
|
5 | | {{ param1 }} {{ param2 }}
|
|
6 | | {%- endmacro -%}
|
|
7 | | {%- call thrice() -%}{%- endcall -%}", ext = "html")]
|
|
| |_____________________________________^
|
|
|
|
error: macro `thrice` expected 2 arguments, found 3
|
|
--> InvalidDefault2.html:4:2
|
|
"- call thrice(1, 2, 3) -%}{%- endcall -%}"
|
|
--> tests/ui/macro_default_value.rs:11:21
|
|
|
|
|
11 | #[template(source = "{%- macro thrice(param1, param2=0) -%}
|
|
| _____________________^
|
|
12 | | {{ param1 }} {{ param2 }}
|
|
13 | | {%- endmacro -%}
|
|
14 | | {%- call thrice(1, 2, 3) -%}{%- endcall -%}", ext = "html")]
|
|
| |____________________________________________^
|