about summary refs log tree commit diff
path: root/tests/ui/error-codes/E0719.rs
blob: d7b4b876d1b788a6b47e9243b7fcf263f65c8043 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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();
}