aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/ui.rs
diff options
context:
space:
mode:
authorLibravatar msrd0 <msrd0@users.noreply.github.com>2020-11-02 17:11:53 +0100
committerLibravatar GitHub <noreply@github.com>2020-11-02 17:11:53 +0100
commitf23162a2080a3fb3fe2b8ba7eba4d61da5737dfe (patch)
tree691611a04b272594493862970c9aa327e6eb4df6 /testing/tests/ui.rs
parentac7d9e8031b4df489a0d58dc3459bc931f1ff870 (diff)
downloadaskama-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.rs')
-rw-r--r--testing/tests/ui.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/tests/ui.rs b/testing/tests/ui.rs
new file mode 100644
index 0000000..17c2248
--- /dev/null
+++ b/testing/tests/ui.rs
@@ -0,0 +1,7 @@
+use trybuild::TestCases;
+
+#[cfg_attr(not(windows), test)]
+fn ui() {
+ let t = TestCases::new();
+ t.compile_fail("tests/ui/*.rs");
+}