summary refs log tree commit diff stats
path: root/tests/trybuild.rs
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2022-12-04 16:43:07 -0300
committerSoniEx2 <endermoneymod@gmail.com>2022-12-04 16:43:07 -0300
commit72519f2161672a2edcd393a41f9f2cd01eddc22f (patch)
treee23cf5aae200616435d17970366834126f6e34cc /tests/trybuild.rs
parentba97c812bd97c9a086aea5b3ce89c87e4b0222ec (diff)
Use a wrapper struct to enable closures
Diffstat (limited to 'tests/trybuild.rs')
-rw-r--r--tests/trybuild.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/trybuild.rs b/tests/trybuild.rs
new file mode 100644
index 0000000..870c2f9
--- /dev/null
+++ b/tests/trybuild.rs
@@ -0,0 +1,5 @@
+#[test]
+fn ui() {
+    let t = trybuild::TestCases::new();
+    t.compile_fail("tests/ui/*.rs");
+}