11error[E0412]: cannot find type `NotDefined` in this scope
2- --> $DIR/issue-50480.rs:14 :12
2+ --> $DIR/issue-50480.rs:13 :12
33 |
44LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
55 | ^^^^^^^^^^ not found in this scope
66
77error[E0277]: the trait bound `i32: std::iter::Iterator` is not satisfied
8- --> $DIR/issue-50480.rs:14 :24
8+ --> $DIR/issue-50480.rs:13 :24
99 |
1010LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
1111 | ^^^^^^^^^^^^^^^^^^^^^^^^ `i32` is not an iterator; maybe try calling `.iter()` or a similar method
@@ -17,20 +17,13 @@ error[E0204]: the trait `Copy` may not be implemented for this type
1717 |
1818LL | #[derive(Clone, Copy)]
1919 | ^^^^
20- ...
20+ LL | //~^ ERROR the trait `Copy` may not be implemented for this type
2121LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
22- | --------- this field does not implement `Copy`
22+ | --------- ------- this field does not implement `Copy`
23+ | |
24+ | this field does not implement `Copy`
2325
24- error[E0204]: the trait `Copy` may not be implemented for this type
25- --> $DIR/issue-50480.rs:11:17
26- |
27- LL | #[derive(Clone, Copy)]
28- | ^^^^
29- ...
30- LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
31- | ------- this field does not implement `Copy`
32-
33- error: aborting due to 4 previous errors
26+ error: aborting due to 3 previous errors
3427
3528Some errors occurred: E0204, E0277, E0412.
3629For more information about an error, try `rustc --explain E0204`.
0 commit comments