From a7f5186bf49ef20010c2eae7717b3a738a3b548e Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 23 Oct 2023 13:32:37 +0200 Subject: Add test specifically for named blocks, and named macros --- testing/tests/ui/name_mismatch_endblock.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 testing/tests/ui/name_mismatch_endblock.rs (limited to 'testing/tests/ui/name_mismatch_endblock.rs') diff --git a/testing/tests/ui/name_mismatch_endblock.rs b/testing/tests/ui/name_mismatch_endblock.rs new file mode 100644 index 0000000..9fbfbe4 --- /dev/null +++ b/testing/tests/ui/name_mismatch_endblock.rs @@ -0,0 +1,8 @@ +use askama::Template; + +#[derive(Template)] +#[template(source = "{% block foo %}{% endblock not_foo %}", ext = "html")] +struct NameMismatchEndBlock; + +fn main() { +} -- cgit