2018-05-08 09:38:35 -05:00
|
|
|
#[derive(Clone, Copy)]
|
|
|
|
//~^ ERROR the trait `Copy` may not be implemented for this type
|
2021-11-02 23:19:06 -05:00
|
|
|
struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
|
2018-05-08 09:38:35 -05:00
|
|
|
//~^ ERROR cannot find type `NotDefined` in this scope
|
2020-01-08 11:02:10 -06:00
|
|
|
//~| ERROR cannot find type `NotDefined` in this scope
|
2021-11-02 23:19:06 -05:00
|
|
|
//~| ERROR cannot find type `N` in this scope
|
|
|
|
//~| ERROR cannot find type `N` in this scope
|
|
|
|
//~| ERROR `i32` is not an iterator
|
|
|
|
|
|
|
|
#[derive(Clone, Copy)]
|
|
|
|
//~^ ERROR the trait `Copy` may not be implemented for this type
|
|
|
|
struct Bar<T>(T, N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
|
|
|
|
//~^ ERROR cannot find type `NotDefined` in this scope
|
|
|
|
//~| ERROR cannot find type `N` in this scope
|
2018-10-09 20:53:53 -05:00
|
|
|
//~| ERROR `i32` is not an iterator
|
2018-05-08 09:38:35 -05:00
|
|
|
|
|
|
|
fn main() {}
|