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.stderr | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 testing/tests/ui/name_mismatch_endblock.stderr (limited to 'testing/tests/ui/name_mismatch_endblock.stderr') diff --git a/testing/tests/ui/name_mismatch_endblock.stderr b/testing/tests/ui/name_mismatch_endblock.stderr new file mode 100644 index 0000000..2cd7aaf --- /dev/null +++ b/testing/tests/ui/name_mismatch_endblock.stderr @@ -0,0 +1,8 @@ +error: problems parsing template source at row 1, column 27 near: + "not_foo %}" + --> tests/ui/name_mismatch_endblock.rs:3:10 + | +3 | #[derive(Template)] + | ^^^^^^^^ + | + = note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info) -- cgit