]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-1937-termination-trait/termination-trait-in-test-should-panic.stderr
e3dab82df41b9c584fd76ff6b98e4aa9b75899c0
[rust.git] / src / test / ui / rfc-1937-termination-trait / termination-trait-in-test-should-panic.stderr
1 error: functions using `#[should_panic]` must return `()`
2   --> $DIR/termination-trait-in-test-should-panic.rs:22:1
3    |
4 LL | / fn not_a_num() -> Result<(), ParseIntError> {
5 LL | |     //~^ ERROR functions using `#[should_panic]` must return `()`
6 LL | |     let _: u32 = "abc".parse()?;
7 LL | |     Ok(())
8 LL | | }
9    | |_^
10
11 error: aborting due to previous error
12