1 2 3 4 5
fn foo<T: Iterator>() { T::Item; //~ ERROR no associated item named `Item` found } fn main() { }