struct A { //~^ ERROR generic parameters with a default must be trailing arg: T, } struct Foo(T); //~^ error: generic parameters with a default must be trailing fn main() {}