Since IntoCodePredicate exists solely for conversion, test it under that scenario to ensure it works as expected.
(pred: I)
| 1149 | // Since IntoCodePredicate exists solely for conversion, test it under that scenario to ensure |
| 1150 | // it works as expected. |
| 1151 | fn convert_code<I, P>(pred: I) -> P |
| 1152 | where |
| 1153 | I: IntoCodePredicate<P>, |
| 1154 | P: Predicate<i32>, |
| 1155 | { |
| 1156 | pred.into_code() |
| 1157 | } |
| 1158 | |
| 1159 | #[test] |
| 1160 | fn into_code_from_pred() { |