fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0412]: cannot find type `N` in this scope 2 --> $DIR/issue-50480.rs:3:12 3 | 4LL | struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String); 5 | ^ not found in this scope 6 | 7help: you might be missing a type parameter 8 | 9LL | struct Foo<N>(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String); 10 | +++ 11 12error[E0412]: cannot find type `NotDefined` in this scope 13 --> $DIR/issue-50480.rs:3:15 14 | 15LL | struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String); 16 | ^^^^^^^^^^ not found in this scope 17 18error[E0412]: cannot find type `N` in this scope 19 --> $DIR/issue-50480.rs:3:12 20 | 21LL | struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String); 22 | ^ not found in this scope 23 | 24help: you might be missing a type parameter 25 | 26LL | struct Foo<N>(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String); 27 | +++ 28 29error[E0412]: cannot find type `NotDefined` in this scope 30 --> $DIR/issue-50480.rs:3:15 31 | 32LL | struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String); 33 | ^^^^^^^^^^ not found in this scope 34 | 35help: you might be missing a type parameter 36 | 37LL | struct Foo<NotDefined>(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String); 38 | ++++++++++++ 39 40error[E0412]: cannot find type `N` in this scope 41 --> $DIR/issue-50480.rs:11:18 42 | 43LL | struct Bar<T>(T, N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String); 44 | - ^ 45 | | 46 | similarly named type parameter `T` defined here 47 | 48help: a type parameter with a similar name exists 49 | 50LL | struct Bar<T>(T, T, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String); 51 | ~ 52help: you might be missing a type parameter 53 | 54LL | struct Bar<T, N>(T, N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String); 55 | +++ 56 57error[E0412]: cannot find type `NotDefined` in this scope 58 --> $DIR/issue-50480.rs:11:21 59 | 60LL | struct Bar<T>(T, N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String); 61 | ^^^^^^^^^^ not found in this scope 62 63error[E0204]: the trait `Copy` cannot be implemented for this type 64 --> $DIR/issue-50480.rs:1:17 65 | 66LL | #[derive(Clone, Copy)] 67 | ^^^^ 68LL | 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[E0204]: the trait `Copy` cannot be implemented for this type 77 --> $DIR/issue-50480.rs:9:17 78 | 79LL | #[derive(Clone, Copy)] 80 | ^^^^ 81LL | 82LL | 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` 86 | 87 = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) 88 89error: aborting due to 8 previous errors 90 91Some errors have detailed explanations: E0204, E0412. 92For more information about an error, try `rustc --explain E0204`.