aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/ui/duplicated_template_attribute.stderr
diff options
context:
space:
mode:
authorLibravatar René Kijewski <kijewski@library.vetmed.fu-berlin.de>2022-01-12 16:14:55 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2022-01-13 15:10:09 +0100
commit345f8432f51e2af7017915b35c203f723f2459d0 (patch)
tree00fa488253763527eeb6a223947c89493ea93060 /testing/tests/ui/duplicated_template_attribute.stderr
parent584f7157ff58d1dd55ee53b1bcd78b3357fbaac1 (diff)
downloadaskama-345f8432f51e2af7017915b35c203f723f2459d0.tar.gz
askama-345f8432f51e2af7017915b35c203f723f2459d0.tar.bz2
askama-345f8432f51e2af7017915b35c203f723f2459d0.zip
Add unit tests if there is one `#[template(…)]`
Diffstat (limited to 'testing/tests/ui/duplicated_template_attribute.stderr')
-rw-r--r--testing/tests/ui/duplicated_template_attribute.stderr7
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/tests/ui/duplicated_template_attribute.stderr b/testing/tests/ui/duplicated_template_attribute.stderr
new file mode 100644
index 0000000..4e6828c
--- /dev/null
+++ b/testing/tests/ui/duplicated_template_attribute.stderr
@@ -0,0 +1,7 @@
+error: duplicated 'template' attribute
+ --> tests/ui/duplicated_template_attribute.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)