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.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 testing/tests/ui.rs (limited to 'testing/tests/ui.rs') 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"); +} -- cgit