blob: 6c438720e5d868d8c2d4b7d82e5a09b8c784c850 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
 | // run-pass
#![allow(unused_assignments)]
// Make sure that the constructor args are codegened for zero-sized tuple structs
struct Foo(());
fn main() {
    let mut a = 1;
    Foo({ a = 2 });
    assert_eq!(a, 2);
}
 |