1 error[E0412]: cannot find type `NotDefined` in this scope
2 --> $DIR/issue-50480.rs:3:12
4 LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
5 | ^^^^^^^^^^ not found in this scope
7 error[E0412]: cannot find type `NotDefined` in this scope
8 --> $DIR/issue-50480.rs:3:12
10 LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
11 | ^^^^^^^^^^ not found in this scope
13 error[E0277]: `i32` is not an iterator
14 --> $DIR/issue-50480.rs:3:24
16 LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
17 | ^^^^^^^^^^^^^^^^^^^^^^^ `i32` is not an iterator
19 = help: the trait `Iterator` is not implemented for `i32`
20 = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
22 error[E0204]: the trait `Copy` may not be implemented for this type
23 --> $DIR/issue-50480.rs:1:17
25 LL | #[derive(Clone, Copy)]
28 LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
29 | -------- ------ this field does not implement `Copy`
31 | this field does not implement `Copy`
33 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
35 error: aborting due to 4 previous errors
37 Some errors have detailed explanations: E0204, E0277, E0412.
38 For more information about an error, try `rustc --explain E0204`.