]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/issue-50480.stderr
Rollup merge of #106470 - ehuss:tidy-no-wasm, r=Mark-Simulacrum
[rust.git] / tests / ui / traits / issue-50480.stderr
1 error[E0412]: cannot find type `N` in this scope
2   --> $DIR/issue-50480.rs:3:12
3    |
4 LL | 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
8    |
9 LL | struct Foo<N>(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
10    |           +++
11
12 error[E0412]: cannot find type `NotDefined` in this scope
13   --> $DIR/issue-50480.rs:3:15
14    |
15 LL | struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
16    |               ^^^^^^^^^^ not found in this scope
17
18 error[E0412]: cannot find type `N` in this scope
19   --> $DIR/issue-50480.rs:3:12
20    |
21 LL | struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
22    |            ^ not found in this scope
23    |
24 help: you might be missing a type parameter
25    |
26 LL | struct Foo<N>(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
27    |           +++
28
29 error[E0412]: cannot find type `NotDefined` in this scope
30   --> $DIR/issue-50480.rs:3:15
31    |
32 LL | struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
33    |               ^^^^^^^^^^ not found in this scope
34    |
35 help: you might be missing a type parameter
36    |
37 LL | struct Foo<NotDefined>(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
38    |           ++++++++++++
39
40 error[E0412]: cannot find type `N` in this scope
41   --> $DIR/issue-50480.rs:12:18
42    |
43 LL | struct Bar<T>(T, N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
44    |            -     ^
45    |            |
46    |            similarly named type parameter `T` defined here
47    |
48 help: a type parameter with a similar name exists
49    |
50 LL | struct Bar<T>(T, T, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
51    |                  ~
52 help: you might be missing a type parameter
53    |
54 LL | struct Bar<T, N>(T, N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
55    |             +++
56
57 error[E0412]: cannot find type `NotDefined` in this scope
58   --> $DIR/issue-50480.rs:12:21
59    |
60 LL | struct Bar<T>(T, N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
61    |                     ^^^^^^^^^^ not found in this scope
62
63 error[E0277]: `i32` is not an iterator
64   --> $DIR/issue-50480.rs:3:27
65    |
66 LL | struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
67    |                           ^^^^^^^^^^^^^^^^^^^^^^^ `i32` is not an iterator
68    |
69    = help: the trait `Iterator` is not implemented for `i32`
70    = 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`
71
72 error[E0204]: the trait `Copy` may not be implemented for this type
73   --> $DIR/issue-50480.rs:1:17
74    |
75 LL | #[derive(Clone, Copy)]
76    |                 ^^^^
77 LL |
78 LL | struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
79    |                                                    --------  ------ this field does not implement `Copy`
80    |                                                    |
81    |                                                    this field does not implement `Copy`
82    |
83    = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
84
85 error[E0277]: `i32` is not an iterator
86   --> $DIR/issue-50480.rs:12:33
87    |
88 LL | struct Bar<T>(T, N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
89    |                                 ^^^^^^^^^^^^^^^^^^^^^^^ `i32` is not an iterator
90    |
91    = help: the trait `Iterator` is not implemented for `i32`
92    = 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`
93
94 error[E0204]: the trait `Copy` may not be implemented for this type
95   --> $DIR/issue-50480.rs:10:17
96    |
97 LL | #[derive(Clone, Copy)]
98    |                 ^^^^
99 LL |
100 LL | struct Bar<T>(T, N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
101    |                                                          --------  ------ this field does not implement `Copy`
102    |                                                          |
103    |                                                          this field does not implement `Copy`
104    |
105    = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
106
107 error: aborting due to 10 previous errors
108
109 Some errors have detailed explanations: E0204, E0277, E0412.
110 For more information about an error, try `rustc --explain E0204`.