fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
1.6 KiB38 linesraw
1error[E0412]: cannot find type `NotDefined` in this scope
2  --> $DIR/issue-50480.rs:3:12
3   |
4LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
5   |            ^^^^^^^^^^ not found in this scope
6
7error[E0412]: cannot find type `NotDefined` in this scope
8  --> $DIR/issue-50480.rs:3:12
9   |
10LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
11   |            ^^^^^^^^^^ not found in this scope
12
13error[E0277]: `i32` is not an iterator
14  --> $DIR/issue-50480.rs:3:24
15   |
16LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
17   |                        ^^^^^^^^^^^^^^^^^^^^^^^ `i32` is not an iterator
18   |
19   = help: the trait `std::iter::Iterator` is not implemented for `i32`
20   = 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`
21
22error[E0204]: the trait `Copy` may not be implemented for this type
23  --> $DIR/issue-50480.rs:1:17
24   |
25LL | #[derive(Clone, Copy)]
26   |                 ^^^^
27LL |
28LL | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
29   |                                                 --------  ------ this field does not implement `Copy`
30   |                                                 |
31   |                                                 this field does not implement `Copy`
32   |
33   = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
34
35error: aborting due to 4 previous errors
36
37Some errors have detailed explanations: E0204, E0277, E0412.
38For more information about an error, try `rustc --explain E0204`.