]>
Commit | Line | Data |
---|---|---|
94b46f34 XL |
1 | error[E0412]: cannot find type `NotDefined` in this scope |
2 | --> $DIR/issue-50480.rs:13:12 | |
3 | | | |
4 | LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String); | |
5 | | ^^^^^^^^^^ not found in this scope | |
6 | ||
0bf4aa26 | 7 | error[E0277]: `i32` is not an iterator |
94b46f34 XL |
8 | --> $DIR/issue-50480.rs:13:24 |
9 | | | |
10 | LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String); | |
0bf4aa26 | 11 | | ^^^^^^^^^^^^^^^^^^^^^^^ `i32` is not an iterator |
94b46f34 XL |
12 | | |
13 | = help: the trait `std::iter::Iterator` is not implemented for `i32` | |
0bf4aa26 | 14 | = 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` |
94b46f34 XL |
15 | |
16 | error[E0204]: the trait `Copy` may not be implemented for this type | |
17 | --> $DIR/issue-50480.rs:11:17 | |
18 | | | |
19 | LL | #[derive(Clone, Copy)] | |
20 | | ^^^^ | |
21 | LL | //~^ ERROR the trait `Copy` may not be implemented for this type | |
22 | LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String); | |
23 | | -------- ------ this field does not implement `Copy` | |
24 | | | | |
25 | | this field does not implement `Copy` | |
26 | ||
27 | error: aborting due to 3 previous errors | |
28 | ||
29 | Some errors occurred: E0204, E0277, E0412. | |
30 | For more information about an error, try `rustc --explain E0204`. |