1 error[E0412]: cannot find type `NotDefined` in this scope
2 --> $DIR/issue-50480.rs:13:12
4 LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
5 | ^^^^^^^^^^ not found in this scope
7 error[E0277]: the trait bound `i32: std::iter::Iterator` is not satisfied
8 --> $DIR/issue-50480.rs:13:24
10 LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
11 | ^^^^^^^^^^^^^^^^^^^^^^^ `i32` is not an iterator; maybe try calling `.iter()` or a similar method
13 = help: the trait `std::iter::Iterator` is not implemented for `i32`
15 error[E0204]: the trait `Copy` may not be implemented for this type
16 --> $DIR/issue-50480.rs:11:17
18 LL | #[derive(Clone, Copy)]
20 LL | //~^ ERROR the trait `Copy` may not be implemented for this type
21 LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
22 | -------- ------ this field does not implement `Copy`
24 | this field does not implement `Copy`
26 error: aborting due to 3 previous errors
28 Some errors occurred: E0204, E0277, E0412.
29 For more information about an error, try `rustc --explain E0204`.