5 // The main point of this test is to ensure that we can parse and resolve
6 // associated items on associated types.
13 // Note 1: Chains of associated items in a path won't type-check.
14 // Note 2: Associated consts can't depend on type parameters or `Self`,
15 // which are the only types that an associated type can be referenced on for
16 // now, so we can only test methods.
18 fn generic_method<T>() -> usize;
32 fn generic_method<T>() -> usize {
41 assert_eq!(2u32, <T as Foo>::U::method());
42 assert_eq!(8usize, <T as Foo>::U::generic_method::<f64>());