blob: cbf1bb219a07bc4258f372d8b45141570af968a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
trait Foo: Iterator<Item = i32, Item = i32> {}
//~^ ERROR is already specified
//~| 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();
}
|