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

14 lines
131 B
Rust
Raw Normal View History

2010-06-23 23:03:09 -05:00
// -*- rust -*-
// error-pattern: dead
2010-06-23 23:03:09 -05:00
fn f(str caller) {
log caller;
}
fn main() {
ret f("main");
log "Paul is dead";
}