about summary refs log tree commit diff
path: root/src/test/ui/rfc-1937-termination-trait/termination-trait-in-test-should-panic.stderr
blob: bfdcf01c325f709f0678be458f945313398df750 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error: functions using `#[should_panic]` must return `()`
  --> $DIR/termination-trait-in-test-should-panic.rs:21:1
   |
LL | / fn not_a_num() -> Result<(), ParseIntError> {
LL | |     //~^ ERROR functions using `#[should_panic]` must return `()`
LL | |     let _: u32 = "abc".parse()?;
LL | |     Ok(())
LL | | }
   | |_^

error: aborting due to previous error