]>
Commit | Line | Data |
---|---|---|
a2a8927a | 1 | error[E0412]: cannot find type `N` in this scope |
0731742a | 2 | --> $DIR/issue-50480.rs:3:12 |
94b46f34 | 3 | | |
a2a8927a | 4 | LL | struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String); |
9c376795 FG |
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 | | +++ | |
94b46f34 | 11 | |
dfeec247 | 12 | error[E0412]: cannot find type `NotDefined` in this scope |
a2a8927a XL |
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 | |
dfeec247 XL |
19 | --> $DIR/issue-50480.rs:3:12 |
20 | | | |
a2a8927a | 21 | LL | struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String); |
9c376795 FG |
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 | | +++ | |
a2a8927a XL |
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); | |
9c376795 FG |
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 | | ++++++++++++ | |
a2a8927a XL |
39 | |
40 | error[E0412]: cannot find type `N` in this scope | |
9c376795 | 41 | --> $DIR/issue-50480.rs:11:18 |
a2a8927a XL |
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 | |
9c376795 | 58 | --> $DIR/issue-50480.rs:11:21 |
a2a8927a XL |
59 | | |
60 | LL | struct Bar<T>(T, N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String); | |
61 | | ^^^^^^^^^^ not found in this scope | |
dfeec247 | 62 | |
353b0b11 | 63 | error[E0204]: the trait `Copy` cannot be implemented for this type |
0731742a | 64 | --> $DIR/issue-50480.rs:1:17 |
94b46f34 XL |
65 | | |
66 | LL | #[derive(Clone, Copy)] | |
67 | | ^^^^ | |
532ac7d7 | 68 | LL | |
a2a8927a XL |
69 | LL | 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 | ||
353b0b11 | 76 | error[E0204]: the trait `Copy` cannot be implemented for this type |
9c376795 | 77 | --> $DIR/issue-50480.rs:9:17 |
a2a8927a XL |
78 | | |
79 | LL | #[derive(Clone, Copy)] | |
80 | | ^^^^ | |
81 | LL | | |
82 | LL | struct Bar<T>(T, N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String); | |
83 | | -------- ------ this field does not implement `Copy` | |
84 | | | | |
85 | | this field does not implement `Copy` | |
74b04a01 | 86 | | |
17df50a5 | 87 | = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) |
94b46f34 | 88 | |
9c376795 | 89 | error: aborting due to 8 previous errors |
94b46f34 | 90 | |
9c376795 | 91 | Some errors have detailed explanations: E0204, E0412. |
94b46f34 | 92 | For more information about an error, try `rustc --explain E0204`. |