rust/tests/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-str-err.rs
2024-02-16 20:02:50 +00:00

9 lines
193 B
Rust

//@ run-fail
//@ error-pattern: An error message for you
//@ failure-status: 1
//@ ignore-emscripten no processes
fn main() -> Result<(), &'static str> {
Err("An error message for you")
}