]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-50480.stderr
New upstream version 1.32.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-50480.stderr
CommitLineData
94b46f34
XL
1error[E0412]: cannot find type `NotDefined` in this scope
2 --> $DIR/issue-50480.rs:13:12
3 |
4LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
5 | ^^^^^^^^^^ not found in this scope
6
0bf4aa26 7error[E0277]: `i32` is not an iterator
94b46f34
XL
8 --> $DIR/issue-50480.rs:13:24
9 |
10LL | 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
16error[E0204]: the trait `Copy` may not be implemented for this type
17 --> $DIR/issue-50480.rs:11:17
18 |
19LL | #[derive(Clone, Copy)]
20 | ^^^^
21LL | //~^ ERROR the trait `Copy` may not be implemented for this type
22LL | 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
27error: aborting due to 3 previous errors
28
29Some errors occurred: E0204, E0277, E0412.
30For more information about an error, try `rustc --explain E0204`.