rust/src/test/ui/rfc-1937-termination-trait/termination-trait-in-test-should-panic.stderr

13 lines
363 B
Plaintext
Raw Normal View History

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
|
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