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:
parent
06d261daf6
commit
f999ab86e0
@ -114,6 +114,7 @@ fn lazy_type_inference() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(panic = "unwind")]
|
||||||
#[should_panic = "LazyCell instance has previously been poisoned"]
|
#[should_panic = "LazyCell instance has previously been poisoned"]
|
||||||
fn lazy_force_mut_panic() {
|
fn lazy_force_mut_panic() {
|
||||||
let mut lazy = LazyCell::<String>::new(|| panic!());
|
let mut lazy = LazyCell::<String>::new(|| panic!());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user