()
| 1095 | #[test] |
| 1096 | fn test_apply_result_question_mark_operator() { |
| 1097 | fn inner() -> ApplyResult<i32> { |
| 1098 | let trunk_id = TrunkId::new(NodeId::new(1), 0); |
| 1099 | Err(ApplyError::trunk_not_found(trunk_id)) |
| 1100 | } |
| 1101 | |
| 1102 | fn outer() -> ApplyResult<i32> { |
| 1103 | let _value = inner()?; |