os-rust/src/test/run-pass/unit.rs

16 lines
266 B
Rust
Raw Normal View History

#![allow(unused_assignments)]
#![allow(unknown_lints)]
// pretty-expanded FIXME #23616
#![allow(unused_variables)]
#![allow(dead_assignment)]
2010-06-23 21:03:09 -07:00
2012-08-01 17:30:05 -07:00
fn f(u: ()) { return u; }
pub fn main() {
let u1: () = ();
let mut u2: () = f(u1);
u2 = ();
2012-08-01 17:30:05 -07:00
return ();
}