rust/tests/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-str-e...

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")
}