From 9835e2ae736235810b4ea1c162ca5e65c547e770 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 04:49:50 +0200 Subject: Merging upstream version 1.71.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/uuid/tests/macros.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 vendor/uuid/tests/macros.rs (limited to 'vendor/uuid/tests/macros.rs') diff --git a/vendor/uuid/tests/macros.rs b/vendor/uuid/tests/macros.rs new file mode 100644 index 000000000..c7cf2a429 --- /dev/null +++ b/vendor/uuid/tests/macros.rs @@ -0,0 +1,11 @@ +#[cfg(feature = "macro-diagnostics")] +#[test] +fn ui() { + let t = trybuild::TestCases::new(); + + t.pass("tests/ui/compile_pass/*.rs"); + + if rustversion::cfg!(nightly) { + t.compile_fail("tests/ui/compile_fail/*.rs"); + } +} -- cgit v1.2.3