2019-11-03 18:00:00 -06:00
|
|
|
//@ check-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2018-08-31 08:02:01 -05:00
|
|
|
#![allow(non_upper_case_globals)]
|
2018-08-30 07:18:55 -05:00
|
|
|
|
2015-10-15 10:09:10 -05:00
|
|
|
fn ret() -> u32 {
|
|
|
|
static x: u32 = 10;
|
|
|
|
x & if true { 10u32 } else { 20u32 } & x
|
|
|
|
}
|
|
|
|
|
|
|
|
fn ret2() -> &'static u32 {
|
|
|
|
static x: u32 = 10;
|
|
|
|
if true { 10u32; } else { 20u32; }
|
|
|
|
&x
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|