diff options
author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-01-22 16:18:47 +0100 |
---|---|---|
committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-01-22 17:13:01 +0100 |
commit | 585a992246bf0602bd81b922eee8c7a6d27e9317 (patch) | |
tree | c203826021f373ea9505bf12f104bfcfeaebda17 /testing/tests/ui/extends.stderr | |
parent | 29687db996307463ac2f4de01f67704e909dd1fe (diff) | |
download | askama-585a992246bf0602bd81b922eee8c7a6d27e9317.tar.gz askama-585a992246bf0602bd81b922eee8c7a6d27e9317.tar.bz2 askama-585a992246bf0602bd81b922eee8c7a6d27e9317.zip |
Add ui test for `extends` error
Diffstat (limited to '')
-rw-r--r-- | testing/tests/ui/extends.stderr | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/tests/ui/extends.stderr b/testing/tests/ui/extends.stderr new file mode 100644 index 0000000..346246d --- /dev/null +++ b/testing/tests/ui/extends.stderr @@ -0,0 +1,19 @@ +error: whitespace control is not allowed on `extends` + problems parsing template source at row 1, column 2 near: + "- extends \"whatever.html\" %}" + --> tests/ui/extends.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: whitespace control is not allowed on `extends` + problems parsing template source at row 1, column 2 near: + " extends \"whatever.html\" -%}" + --> tests/ui/extends.rs:10:10 + | +10 | #[derive(Template)] + | ^^^^^^^^ + | + = note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info) |