diff --git a/quantinuum-hugr/src/algorithm/const_fold.rs b/quantinuum-hugr/src/algorithm/const_fold.rs index 8397505cd..138769ae7 100644 --- a/quantinuum-hugr/src/algorithm/const_fold.rs +++ b/quantinuum-hugr/src/algorithm/const_fold.rs @@ -330,8 +330,11 @@ mod test { Ok(()) } - #[cfg(not(feature = "extension_inference"))] // inference fails for test graph, shouldn't #[test] + #[cfg_attr( + feature = "extension_inference", + ignore = "inference fails for test graph, it shouldn't" + )] fn test_list_ops() -> Result<(), Box> { use crate::std_extensions::collections::{self, ListOp, ListValue};