mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
17 lines
281 B
Rust
17 lines
281 B
Rust
//@ run-pass
|
|
|
|
#![allow(unused_assignments)]
|
|
#![allow(unknown_lints)]
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
#![allow(unused_variables)]
|
|
#![allow(dead_assignment)]
|
|
|
|
fn f(u: ()) { return u; }
|
|
|
|
pub fn main() {
|
|
let u1: () = ();
|
|
let mut u2: () = f(u1);
|
|
u2 = ();
|
|
return ();
|
|
}
|