From 345f8432f51e2af7017915b35c203f723f2459d0 Mon Sep 17 00:00:00 2001 From: René Kijewski Date: Wed, 12 Jan 2022 16:14:55 +0100 Subject: Add unit tests if there is one `#[template(…)]` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- testing/tests/ui/duplicated_template_attribute.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 testing/tests/ui/duplicated_template_attribute.rs (limited to 'testing/tests/ui/duplicated_template_attribute.rs') diff --git a/testing/tests/ui/duplicated_template_attribute.rs b/testing/tests/ui/duplicated_template_attribute.rs new file mode 100644 index 0000000..c0cd3e6 --- /dev/null +++ b/testing/tests/ui/duplicated_template_attribute.rs @@ -0,0 +1,15 @@ +use askama::Template; + +#[derive(Template)] +#[template( + source = "🙂", + ext = "txt" +)] +#[template( + source = "🙃", + ext = "txt" +)] +struct TwoEmojis; + +fn main() { +} -- cgit