2012-04-07 17:11:33 -07:00
|
|
|
// xfail-pretty
|
|
|
|
|
|
|
|
fn id(x: bool) -> bool { x }
|
|
|
|
|
|
|
|
fn call_id() {
|
|
|
|
let c <- fail;
|
2012-06-30 12:23:59 +01:00
|
|
|
id(c); //~ WARNING unreachable statement
|
2012-04-07 17:11:33 -07:00
|
|
|
}
|
|
|
|
|
2012-08-01 17:30:05 -07:00
|
|
|
fn call_id_3() { id(return) && id(return); }
|
2012-04-07 17:11:33 -07:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|