1 error[E0412]: cannot find type `N` in this scope
2 --> $DIR/issue-50480.rs:3:12
4 LL | struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
5 | ^ not found in this scope
7 help: you might be missing a type parameter
9 LL | struct Foo<N>(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
12 error[E0412]: cannot find type `NotDefined` in this scope
13 --> $DIR/issue-50480.rs:3:15
15 LL | struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
16 | ^^^^^^^^^^ not found in this scope
18 error[E0412]: cannot find type `N` in this scope
19 --> $DIR/issue-50480.rs:3:12
21 LL | struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
22 | ^ not found in this scope
24 help: you might be missing a type parameter
26 LL | struct Foo<N>(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
29 error[E0412]: cannot find type `NotDefined` in this scope
30 --> $DIR/issue-50480.rs:3:15
32 LL | struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
33 | ^^^^^^^^^^ not found in this scope
35 help: you might be missing a type parameter
37 LL | struct Foo<NotDefined>(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
40 error[E0412]: cannot find type `N` in this scope
41 --> $DIR/issue-50480.rs:11:18
43 LL | struct Bar<T>(T, N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
46 | similarly named type parameter `T` defined here
48 help: a type parameter with a similar name exists
50 LL | struct Bar<T>(T, T, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
52 help: you might be missing a type parameter
54 LL | struct Bar<T, N>(T, N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
57 error[E0412]: cannot find type `NotDefined` in this scope
58 --> $DIR/issue-50480.rs:11:21
60 LL | struct Bar<T>(T, N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
61 | ^^^^^^^^^^ not found in this scope
63 error[E0204]: the trait `Copy` may not be implemented for this type
64 --> $DIR/issue-50480.rs:1:17
66 LL | #[derive(Clone, Copy)]
69 LL | struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
70 | -------- ------ this field does not implement `Copy`
72 | this field does not implement `Copy`
74 = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
76 error[E0204]: the trait `Copy` may not be implemented for this type
77 --> $DIR/issue-50480.rs:9:17
79 LL | #[derive(Clone, Copy)]
82 LL | struct Bar<T>(T, N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
83 | -------- ------ this field does not implement `Copy`
85 | this field does not implement `Copy`
87 = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
89 error: aborting due to 8 previous errors
91 Some errors have detailed explanations: E0204, E0412.
92 For more information about an error, try `rustc --explain E0204`.