()
| 88 | |
| 89 | #[test] |
| 90 | fn into_report() { |
| 91 | let report = io_error().map_err(Report::from).expect_err("not an error"); |
| 92 | assert!(report.contains::<io::Error>()); |
| 93 | assert_eq!(report.current_context().kind(), io::ErrorKind::Other); |
| 94 | } |
| 95 | |
| 96 | fn returning_boxed_error() -> Result<(), Box<dyn core::error::Error + Send + Sync>> { |
| 97 | io_error().attach_opaque(10_u32)?; |