struct A { int x } struct B { bool x ; int y } void foo(A a, B b) { a = b; return; }