rust/tests/ui/rfcs/rfc-1937-termination-trait/termination-trait-in-test-should-panic.stderr
Nilstrieb 41e8d152dc Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00

13 lines
299 B
Plaintext

error: functions using `#[should_panic]` must return `()`
--> $DIR/termination-trait-in-test-should-panic.rs:11:1
|
LL | / fn not_a_num() -> Result<(), ParseIntError> {
LL | |
LL | | let _: u32 = "abc".parse()?;
LL | | Ok(())
LL | | }
| |_^
error: aborting due to 1 previous error