blob: d7b4b876d1b788a6b47e9243b7fcf263f65c8043 [file] [log] [blame]
type Unit = ();
fn test() -> Box<dyn Iterator<Item = (), Item = Unit>> {
//~^ ERROR is already specified
Box::new(None.into_iter())
}
fn main() {
let _: &dyn Iterator<Item = i32, Item = i32>;
//~^ ERROR already specified
test();
}