From 48cea4716419bdc84a00d6ee0f47a9eaf77e052d Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 30 Dec 2023 18:31:42 -0800 Subject: [PATCH] Make CI verify that error_generic_member_access works in latest nightly --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 86a18a3..67f8b08 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -237,6 +237,9 @@ )] #![cfg_attr(error_generic_member_access, feature(error_generic_member_access))] +#[cfg(all(thiserror_nightly_testing, not(error_generic_member_access)))] +compile_error!("Build script probe failed to compile."); + mod aserror; mod display; #[cfg(error_generic_member_access)]