// run-pass// Test associated type references in a struct literal. Issue #20535.pubtraitFoo{typeBar;fndummy(&self){}}implFooforisize{typeBar=isize;}structThing<F: Foo>{a: F,b: F::Bar,}fnmain(){letthing=Thing{a: 1,b: 2};assert_eq!(thing.a+1,thing.b);}