2018-04-12 14:30:37 -05:00
|
|
|
error: functions using `#[should_panic]` must return `()`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/termination-trait-in-test-should-panic.rs:11:1
|
2018-04-12 14:30:37 -05:00
|
|
|
|
|
|
|
|
LL | / fn not_a_num() -> Result<(), ParseIntError> {
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | |
|
2018-04-12 14:30:37 -05:00
|
|
|
LL | | let _: u32 = "abc".parse()?;
|
|
|
|
LL | | Ok(())
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|