// check-pass #![feature(generic_arg_infer)] struct Foo; struct Bar; fn main() { let _: Foo = Foo::<_, 1>; let _: Foo<_, 1> = Foo::; let _: Bar<1, _> = Bar::<_, 300>; let _: Bar<_, 300> = Bar::<1, _>; }