rust/tests/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-str-err.rs
2023-06-05 16:09:46 +00:00

9 lines
189 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")
}