]> git.proxmox.com Git - rustc.git/blob - tests/ui/rfc-1937-termination-trait/termination-trait-in-test-should-panic.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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