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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
297 B
Plaintext
Raw Normal View History

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
|
LL | / fn not_a_num() -> Result<(), ParseIntError> {
2019-03-09 06:03:44 -06:00
LL | |
LL | | let _: u32 = "abc".parse()?;
LL | | Ok(())
LL | | }
| |_^
error: aborting due to previous error