]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-50480.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-50480.stderr
CommitLineData
a2a8927a 1error[E0412]: cannot find type `N` in this scope
0731742a 2 --> $DIR/issue-50480.rs:3:12
94b46f34 3 |
a2a8927a
XL
4LL | struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
5 | -^ not found in this scope
6 | |
7 | help: you might be missing a type parameter: `<N>`
94b46f34 8
dfeec247 9error[E0412]: cannot find type `NotDefined` in this scope
a2a8927a
XL
10 --> $DIR/issue-50480.rs:3:15
11 |
12LL | struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
13 | ^^^^^^^^^^ not found in this scope
14
15error[E0412]: cannot find type `N` in this scope
dfeec247
XL
16 --> $DIR/issue-50480.rs:3:12
17 |
a2a8927a
XL
18LL | struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
19 | -^ not found in this scope
20 | |
21 | help: you might be missing a type parameter: `<N>`
22
23error[E0412]: cannot find type `NotDefined` in this scope
24 --> $DIR/issue-50480.rs:3:15
25 |
26LL | struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
27 | - ^^^^^^^^^^ not found in this scope
28 | |
29 | help: you might be missing a type parameter: `<NotDefined>`
30
31error[E0412]: cannot find type `N` in this scope
32 --> $DIR/issue-50480.rs:12:18
33 |
34LL | struct Bar<T>(T, N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
35 | - ^
36 | |
37 | similarly named type parameter `T` defined here
38 |
39help: a type parameter with a similar name exists
40 |
41LL | struct Bar<T>(T, T, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
42 | ~
43help: you might be missing a type parameter
44 |
45LL | struct Bar<T, N>(T, N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
46 | +++
47
48error[E0412]: cannot find type `NotDefined` in this scope
49 --> $DIR/issue-50480.rs:12:21
50 |
51LL | struct Bar<T>(T, N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
52 | ^^^^^^^^^^ not found in this scope
dfeec247 53
0bf4aa26 54error[E0277]: `i32` is not an iterator
a2a8927a 55 --> $DIR/issue-50480.rs:3:27
94b46f34 56 |
a2a8927a
XL
57LL | struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
58 | ^^^^^^^^^^^^^^^^^^^^^^^ `i32` is not an iterator
94b46f34 59 |
1b1a35ee 60 = help: the trait `Iterator` is not implemented for `i32`
0bf4aa26 61 = 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
62
63error[E0204]: the trait `Copy` may not be implemented for this type
0731742a 64 --> $DIR/issue-50480.rs:1:17
94b46f34
XL
65 |
66LL | #[derive(Clone, Copy)]
67 | ^^^^
532ac7d7 68LL |
a2a8927a
XL
69LL | struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
70 | -------- ------ this field does not implement `Copy`
71 | |
72 | this field does not implement `Copy`
73 |
74 = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
75
76error[E0277]: `i32` is not an iterator
77 --> $DIR/issue-50480.rs:12:33
78 |
79LL | struct Bar<T>(T, N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
80 | ^^^^^^^^^^^^^^^^^^^^^^^ `i32` is not an iterator
81 |
82 = help: the trait `Iterator` is not implemented for `i32`
83 = 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`
84
85error[E0204]: the trait `Copy` may not be implemented for this type
86 --> $DIR/issue-50480.rs:10:17
87 |
88LL | #[derive(Clone, Copy)]
89 | ^^^^
90LL |
91LL | struct Bar<T>(T, N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
92 | -------- ------ this field does not implement `Copy`
93 | |
94 | this field does not implement `Copy`
74b04a01 95 |
17df50a5 96 = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
94b46f34 97
a2a8927a 98error: aborting due to 10 previous errors
94b46f34 99
48663c56 100Some errors have detailed explanations: E0204, E0277, E0412.
94b46f34 101For more information about an error, try `rustc --explain E0204`.