rust/tests/ui/issues/issue-38919.rs

6 lines
102 B
Rust

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