2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(unused_must_use)]
|
2015-03-22 13:13:15 -07:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2014-04-14 21:00:31 +05:30
|
|
|
#![allow(unreachable_code)]
|
2013-07-17 03:13:23 -05:00
|
|
|
|
|
|
|
fn foo() -> bool { false }
|
|
|
|
|
|
|
|
fn bar() {
|
|
|
|
return;
|
|
|
|
!foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn baz() {
|
|
|
|
return;
|
|
|
|
if "" == "" {}
|
|
|
|
}
|
|
|
|
|
2013-09-25 00:43:37 -07:00
|
|
|
pub fn main() {
|
2013-07-17 03:13:23 -05:00
|
|
|
bar();
|
|
|
|
baz();
|
|
|
|
}
|