diff options
author | msrd0 <msrd0@users.noreply.github.com> | 2020-11-02 17:11:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-02 17:11:53 +0100 |
commit | f23162a2080a3fb3fe2b8ba7eba4d61da5737dfe (patch) | |
tree | 691611a04b272594493862970c9aa327e6eb4df6 /testing/tests/ui/incorrect_path.rs | |
parent | ac7d9e8031b4df489a0d58dc3459bc931f1ff870 (diff) | |
download | askama-f23162a2080a3fb3fe2b8ba7eba4d61da5737dfe.tar.gz askama-f23162a2080a3fb3fe2b8ba7eba4d61da5737dfe.tar.bz2 askama-f23162a2080a3fb3fe2b8ba7eba4d61da5737dfe.zip |
Use `syn::Error::to_compile_error` and add trybuild ui test (#374)
Diffstat (limited to 'testing/tests/ui/incorrect_path.rs')
-rw-r--r-- | testing/tests/ui/incorrect_path.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/tests/ui/incorrect_path.rs b/testing/tests/ui/incorrect_path.rs new file mode 100644 index 0000000..f0c85cf --- /dev/null +++ b/testing/tests/ui/incorrect_path.rs @@ -0,0 +1,8 @@ +use askama::Template; + +#[derive(Template)] +#[template(path = "thisdoesnotexist.html")] +struct MyTemplate; + +fn main() { +} |