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_endmacro.stderr | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 testing/tests/ui/name_mismatch_endmacro.stderr (limited to 'testing/tests/ui/name_mismatch_endmacro.stderr') diff --git a/testing/tests/ui/name_mismatch_endmacro.stderr b/testing/tests/ui/name_mismatch_endmacro.stderr new file mode 100644 index 0000000..ef389a2 --- /dev/null +++ b/testing/tests/ui/name_mismatch_endmacro.stderr @@ -0,0 +1,8 @@ +error: problems parsing template source at row 1, column 41 near: + "not_foo %}" + --> tests/ui/name_mismatch_endmacro.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