rust/tests/ui/associated-type-bounds/issue-71443-1.rs

8 lines
120 B
Rust

struct Incorrect;
fn hello<F: for<'a> Iterator<Item: 'a>>() {
Incorrect //~ERROR: mismatched types
}
fn main() {}