From b93ce466cee51f879edd346d05c0faa4845ee1cc Mon Sep 17 00:00:00 2001 From: René Kijewski Date: Fri, 30 Jul 2021 17:16:13 +0200 Subject: Ensure that {%break%} is only used inside of a loop --- testing/tests/ui/break_outside_of_loop.stderr | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 testing/tests/ui/break_outside_of_loop.stderr (limited to 'testing/tests/ui/break_outside_of_loop.stderr') diff --git a/testing/tests/ui/break_outside_of_loop.stderr b/testing/tests/ui/break_outside_of_loop.stderr new file mode 100644 index 0000000..99d1d25 --- /dev/null +++ b/testing/tests/ui/break_outside_of_loop.stderr @@ -0,0 +1,8 @@ +error: problems parsing template source at row 1, column 9 near: +"break%}, have a parsing error!" + --> $DIR/break_outside_of_loop.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