rust/tests/ui/iterators/bound.rs

5 lines
86 B
Rust

struct S<I: Iterator>(I);
struct T(S<u8>);
//~^ ERROR is not an iterator
fn main() {}