]> git.lizzy.rs Git - rust.git/blob - tests/ui/unit.rs
Modify existing bounds if they exist
[rust.git] / tests / ui / unit.rs
1 // run-pass
2
3 #![allow(unused_assignments)]
4 #![allow(unknown_lints)]
5 // pretty-expanded FIXME #23616
6
7 #![allow(unused_variables)]
8 #![allow(dead_assignment)]
9
10 fn f(u: ()) { return u; }
11
12 pub fn main() {
13     let u1: () = ();
14     let mut u2: () = f(u1);
15     u2 = ();
16     return ();
17 }