rust/src/test/compile-fail/dead-code-ret.rs

15 lines
147 B
Rust

// xfail-stage0
// -*- rust -*-
// error-pattern: dead
fn f(str caller) {
log caller;
}
fn main() {
ret f("main");
log "Paul is dead";
}