From f23162a2080a3fb3fe2b8ba7eba4d61da5737dfe Mon Sep 17 00:00:00 2001 From: msrd0 Date: Mon, 2 Nov 2020 17:11:53 +0100 Subject: Use `syn::Error::to_compile_error` and add trybuild ui test (#374) --- testing/tests/ui/incorrect_path.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 testing/tests/ui/incorrect_path.rs (limited to 'testing/tests/ui/incorrect_path.rs') 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() { +} -- cgit