13 lines
363 B
Plaintext
13 lines
363 B
Plaintext
|
error: functions using `#[should_panic]` must return `()`
|
||
|
--> $DIR/termination-trait-in-test-should-panic.rs:22: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
|
||
|
|