2018-05-08 14:38:35 +00:00
|
|
|
#[derive(Clone, Copy)]
|
2023-03-07 23:55:51 +00:00
|
|
|
//~^ ERROR the trait `Copy` cannot be implemented for this type
|
2021-11-03 04:19:06 +00:00
|
|
|
struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
|
2018-05-08 14:38:35 +00:00
|
|
|
//~^ ERROR cannot find type `NotDefined` in this scope
|
2020-01-08 17:02:10 +00:00
|
|
|
//~| ERROR cannot find type `NotDefined` in this scope
|
2021-11-03 04:19:06 +00:00
|
|
|
//~| ERROR cannot find type `N` in this scope
|
|
|
|
//~| ERROR cannot find type `N` in this scope
|
2024-02-02 08:36:46 +00:00
|
|
|
//~| ERROR `i32` is not an iterator
|
2024-02-09 12:17:55 +00:00
|
|
|
//~| ERROR `i32` is not an iterator
|
2021-11-03 04:19:06 +00:00
|
|
|
|
|
|
|
#[derive(Clone, Copy)]
|
2023-03-07 23:55:51 +00:00
|
|
|
//~^ ERROR the trait `Copy` cannot be implemented for this type
|
2024-02-09 12:17:55 +00:00
|
|
|
//~| ERROR `i32` is not an iterator
|
2021-11-03 04:19:06 +00:00
|
|
|
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
|
2024-02-02 08:36:46 +00:00
|
|
|
//~| ERROR `i32` is not an iterator
|
2024-02-09 12:17:55 +00:00
|
|
|
//~| ERROR `i32` is not an iterator
|
2018-05-08 14:38:35 +00:00
|
|
|
|
|
|
|
fn main() {}
|