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