1 2 3 4 5 6 7 8 9
#![feature(associated_type_bounds)] struct Incorrect; fn hello<F: for<'a> Iterator<Item: 'a>>() { Incorrect //~ERROR: mismatched types } fn main() {}