]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-50480.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-50480.stderr
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
7 error[E0277]: the trait bound `i32: std::iter::Iterator` is not satisfied
8   --> $DIR/issue-50480.rs:13:24
9    |
10 LL | 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
15 error[E0204]: the trait `Copy` may not be implemented for this type
16   --> $DIR/issue-50480.rs:11:17
17    |
18 LL | #[derive(Clone, Copy)]
19    |                 ^^^^
20 LL | //~^ ERROR the trait `Copy` may not be implemented for this type
21 LL | 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
26 error: aborting due to 3 previous errors
27
28 Some errors occurred: E0204, E0277, E0412.
29 For more information about an error, try `rustc --explain E0204`.