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

10 lines
140 B
Rust
Raw Normal View History

// xfail-test
2010-06-23 21:03:09 -07:00
// -*- rust -*-
// error-pattern: dead
2011-07-27 14:19:39 +02:00
fn f(caller: str) { log caller; }
2010-06-23 21:03:09 -07:00
2011-07-27 14:19:39 +02:00
fn main() { ret f("main"); log "Paul is dead"; }
2010-06-23 21:03:09 -07:00