mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-28 05:21:14 +00:00
48 lines
1.9 KiB
Plaintext
48 lines
1.9 KiB
Plaintext
error: `value` filter expects one generic, found 0
|
|
--> A.html:1:18
|
|
"\"a\"|value %}{% endif %}"
|
|
--> tests/ui/values.rs:6:14
|
|
|
|
|
6 | source = r#"{% if let Ok(x) = "a"|value %}{% endif %}"#,
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: `value` filter expects one generic, found 2
|
|
--> B.html:1:18
|
|
"\"a\"|value::<u8, u8> %}{% endif %}"
|
|
--> tests/ui/values.rs:13:14
|
|
|
|
|
13 | source = r#"{% if let Ok(x) = "a"|value::<u8, u8> %}{% endif %}"#,
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: `get_value` function expects one generic, found 0
|
|
--> C.html:1:18
|
|
"askama::get_value(\"a\") %}{% endif %}"
|
|
--> tests/ui/values.rs:20:14
|
|
|
|
|
20 | source = r#"{% if let Ok(x) = askama::get_value("a") %}{% endif %}"#,
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: `get_value` function expects one generic, found 2
|
|
--> D.html:1:18
|
|
"askama::get_value::<u8, u8>(\"a\") %}{% endif %}"
|
|
--> tests/ui/values.rs:27:14
|
|
|
|
|
27 | source = r#"{% if let Ok(x) = askama::get_value::<u8, u8>("a") %}{% endif %}"#,
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: `get_value` function only takes one argument, found 0
|
|
--> E.html:1:18
|
|
"askama::get_value::<u8>() %}{% endif %}"
|
|
--> tests/ui/values.rs:34:14
|
|
|
|
|
34 | source = r#"{% if let Ok(x) = askama::get_value::<u8>() %}{% endif %}"#,
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: `get_value` function only takes one argument, found 2
|
|
--> F.html:1:18
|
|
"askama::get_value::<u8>(\"a\", \"b\") %}{% endif %}"
|
|
--> tests/ui/values.rs:41:14
|
|
|
|
|
41 | source = r#"{% if let Ok(x) = askama::get_value::<u8>("a", "b") %}{% endif %}"#,
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|