fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error[E0412]: cannot find type `NotDefined` in this scope 2 --> $DIR/issue-50480.rs:3:12 3 | 4LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String); 5 | ^^^^^^^^^^ not found in this scope 6 7error[E0412]: cannot find type `NotDefined` in this scope 8 --> $DIR/issue-50480.rs:3:12 9 | 10LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String); 11 | ^^^^^^^^^^ not found in this scope 12 13error[E0277]: `i32` is not an iterator 14 --> $DIR/issue-50480.rs:3:24 15 | 16LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String); 17 | ^^^^^^^^^^^^^^^^^^^^^^^ `i32` is not an iterator 18 | 19 = help: the trait `std::iter::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` 21 22error[E0204]: the trait `Copy` may not be implemented for this type 23 --> $DIR/issue-50480.rs:1:17 24 | 25LL | #[derive(Clone, Copy)] 26 | ^^^^ 27LL | 28LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String); 29 | -------- ------ this field does not implement `Copy` 30 | | 31 | this field does not implement `Copy` 32 33error: aborting due to 4 previous errors 34 35Some errors have detailed explanations: E0204, E0277, E0412. 36For more information about an error, try `rustc --explain E0204`.