]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-1937-termination-trait/termination-trait-in-test-should-panic.stderr
Auto merge of #95454 - randomicon00:fix95444, r=wesleywiser
[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:11:1
3    |
4 LL | / fn not_a_num() -> Result<(), ParseIntError> {
5 LL | |
6 LL | |     let _: u32 = "abc".parse()?;
7 LL | |     Ok(())
8 LL | | }
9    | |_^
10
11 error: aborting due to previous error
12