Do not run test where it cannot run

This was seen on Ferrocene, where we have a custom test target that does not have unwind support
This commit is contained in:
Amanjeev Sethi 2024-10-17 09:33:39 -04:00
parent 06d261daf6
commit f999ab86e0

View File

@ -114,6 +114,7 @@ fn lazy_type_inference() {
}
#[test]
#[cfg(panic = "unwind")]
#[should_panic = "LazyCell instance has previously been poisoned"]
fn lazy_force_mut_panic() {
let mut lazy = LazyCell::<String>::new(|| panic!());