1 // Users cannot yet construct structs through associated types
2 // in both expressions and patterns
4 #![feature(more_qualified_paths)]
7 let <Foo as A>::Assoc(n) = <Foo as A>::Assoc(2);
8 //~^ ERROR expected method or associated constant, found associated type
9 //~| ERROR expected method or associated constant, found associated type
13 struct TupleStruct(i8);
23 type Assoc = TupleStruct;