()
| 549 | #[test] |
| 550 | #[should_panic(expected = "without being consumed")] |
| 551 | fn panic_on_unused() { |
| 552 | #[expect(clippy::unnecessary_wraps)] |
| 553 | fn sink() -> Result<(), Report<[TestError]>> { |
| 554 | let mut sink = ReportSink::new_armed(); |
| 555 | |
| 556 | sink.append(Report::new(TestError(0))); |
| 557 | |
| 558 | Ok(()) |
| 559 | } |
| 560 | |
| 561 | let _result = sink(); |
| 562 | } |
| 563 | |
| 564 | #[test] |
| 565 | fn panic_on_unused_with_defuse() { |