]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issue-50480.stderr
New upstream version 1.28.0~beta.14+dfsg1
[rustc.git] / src / test / ui / 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
7error[E0277]: the trait bound `i32: std::iter::Iterator` is not satisfied
8 --> $DIR/issue-50480.rs:13:24
9 |
10LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
11 | ^^^^^^^^^^^^^^^^^^^^^^^ `i32` is not an iterator; maybe try calling `.iter()` or a similar method
12 |
13 = help: the trait `std::iter::Iterator` is not implemented for `i32`
14
15error[E0204]: the trait `Copy` may not be implemented for this type
16 --> $DIR/issue-50480.rs:11:17
17 |
18LL | #[derive(Clone, Copy)]
19 | ^^^^
20LL | //~^ ERROR the trait `Copy` may not be implemented for this type
21LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
22 | -------- ------ this field does not implement `Copy`
23 | |
24 | this field does not implement `Copy`
25
26error: aborting due to 3 previous errors
27
28Some errors occurred: E0204, E0277, E0412.
29For more information about an error, try `rustc --explain E0204`.