2 // Test equality constraints on associated types in a where clause.
6 fn to_int(&self) -> isize;
13 fn get(&self) -> <Self as GetToInt>::R;
16 fn foo<G>(g: G) -> isize
19 ToInt::to_int(&g.get()) //~ ERROR E0277
22 fn bar<G : GetToInt>(g: G) -> isize
25 ToInt::to_int(&g.get()) // OK