diff options
author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2023-11-17 11:47:55 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2023-11-20 10:34:26 +0100 |
commit | ea7267dfc2914cdc340bae1a823c0660daef19e6 (patch) | |
tree | 654f4f8184145cfa3ef0e66684394d5ee98de351 /testing/tests/ui/macro.stderr | |
parent | 70b5b14dc54f13dcc7df6ab685ee24f88bda8123 (diff) | |
download | askama-ea7267dfc2914cdc340bae1a823c0660daef19e6.tar.gz askama-ea7267dfc2914cdc340bae1a823c0660daef19e6.tar.bz2 askama-ea7267dfc2914cdc340bae1a823c0660daef19e6.zip |
Add UI tests for macros error message
Diffstat (limited to '')
-rw-r--r-- | testing/tests/ui/macro.stderr | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/tests/ui/macro.stderr b/testing/tests/ui/macro.stderr new file mode 100644 index 0000000..5471c96 --- /dev/null +++ b/testing/tests/ui/macro.stderr @@ -0,0 +1,23 @@ +error: macro "thrice" expected 1 argument, found 2 + --> tests/ui/macro.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) + +error: macro "thrice" expected 2 arguments, found 0 + --> tests/ui/macro.rs:11:10 + | +11 | #[derive(Template)] + | ^^^^^^^^ + | + = note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: macro "thrice" expected 0 arguments, found 2 + --> tests/ui/macro.rs:19:10 + | +19 | #[derive(Template)] + | ^^^^^^^^ + | + = note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info) |