summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0719.rs
blob: 3311e190937cc4e9e093f8d30a7de828deed8655 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
trait Foo: Iterator<Item = i32, Item = i32> {}
//~^ ERROR is already specified

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>;
    test();
}