2018-04-12 14:30:37 -05:00
|
|
|
error: functions using `#[should_panic]` must return `()`
|
2018-06-06 10:21:57 -05:00
|
|
|
--> $DIR/termination-trait-in-test-should-panic.rs:21:1
|
2018-04-12 14:30:37 -05:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|