error: `extends` block must come first in a template --> :3:2 " extends \"bla.txt\" %}\n{% endblock %}\n" --> tests/ui/blocks_below_top_level.rs:4:21 | 4 | #[template(source = r#" | _____________________^ 5 | | {% block bla %} 6 | | {% extends "bla.txt" %} 7 | | {% endblock %} 8 | | "#, ext = "txt")] | |__^ error: `macro` blocks are not allowed below top level --> MyTemplate2.txt:3:3 "macro bla() %}\n{% endmacro %}\n{% endblock %}\n" --> tests/ui/blocks_below_top_level.rs:12:21 | 12 | #[template(source = r#" | _____________________^ 13 | | {% block bla %} 14 | | {% macro bla() %} 15 | | {% endmacro %} 16 | | {% endblock %} 17 | | "#, ext = "txt")] | |__^ error: `import` blocks are not allowed below top level --> MyTemplate3.txt:3:3 "import \"bla.txt\" as blue %}\n{% endblock %}\n" --> tests/ui/blocks_below_top_level.rs:21:21 | 21 | #[template(source = r#" | _____________________^ 22 | | {% block bla %} 23 | | {% import "bla.txt" as blue %} 24 | | {% endblock %} 25 | | "#, ext = "txt")] | |__^