2019-11-04 00:00:00 +00:00
|
|
|
// check-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2018-08-31 15:02:01 +02:00
|
|
|
#![allow(non_upper_case_globals)]
|
2018-08-30 14:18:55 +02:00
|
|
|
|
2015-10-15 18:09:10 +03: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() {}
|