diff options
author | 2021-07-30 17:16:13 +0200 | |
---|---|---|
committer | 2021-08-30 22:54:32 +0200 | |
commit | b93ce466cee51f879edd346d05c0faa4845ee1cc (patch) | |
tree | 5fa66896f0b59f9a76a389c57186f2775c6633df /testing/tests/ui/break_outside_of_loop.rs | |
parent | 726ca1cc3356f7aa59d7c2730c9f3b3588236cb0 (diff) | |
download | askama-b93ce466cee51f879edd346d05c0faa4845ee1cc.tar.gz askama-b93ce466cee51f879edd346d05c0faa4845ee1cc.tar.bz2 askama-b93ce466cee51f879edd346d05c0faa4845ee1cc.zip |
Ensure that {%break%} is only used inside of a loop
Diffstat (limited to 'testing/tests/ui/break_outside_of_loop.rs')
-rw-r--r-- | testing/tests/ui/break_outside_of_loop.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/tests/ui/break_outside_of_loop.rs b/testing/tests/ui/break_outside_of_loop.rs new file mode 100644 index 0000000..ccbb0a9 --- /dev/null +++ b/testing/tests/ui/break_outside_of_loop.rs @@ -0,0 +1,11 @@ +use askama::Template; + +#[derive(Template)] +#[template( + source = "Have a {%break%}, have a parsing error!", + ext = "txt" +)] +struct MyTemplate; + +fn main() { +} |