2019-07-26 21:54:25 +00:00
|
|
|
// run-pass
|
|
|
|
|
2018-09-14 10:20:28 +00:00
|
|
|
#![allow(unused_assignments)]
|
|
|
|
#![allow(unknown_lints)]
|
2015-03-22 20:13:15 +00:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2016-08-13 09:41:43 +00:00
|
|
|
#![allow(unused_variables)]
|
2014-04-14 15:30:31 +00:00
|
|
|
#![allow(dead_assignment)]
|
2010-06-24 04:03:09 +00:00
|
|
|
|
2012-08-02 00:30:05 +00:00
|
|
|
fn f(u: ()) { return u; }
|
2011-06-15 18:19:50 +00:00
|
|
|
|
2013-02-02 03:43:17 +00:00
|
|
|
pub fn main() {
|
2012-03-22 15:39:41 +00:00
|
|
|
let u1: () = ();
|
|
|
|
let mut u2: () = f(u1);
|
|
|
|
u2 = ();
|
2012-08-02 00:30:05 +00:00
|
|
|
return ();
|
2012-03-22 15:39:41 +00:00
|
|
|
}
|