trait x { fn use_x(); } enum y = (); impl y:x { fn use_x() { struct foo { //~ ERROR quux i: () } fn new_foo(i: ()) -> foo { foo { i: i } } } }