mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
16 lines
640 B
Rust
16 lines
640 B
Rust
#[derive(Clone, Copy)]
|
|
//~^ ERROR the trait `Copy` may not be implemented for this type
|
|
struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
|
|
//~^ ERROR cannot find type `NotDefined` in this scope
|
|
//~| ERROR cannot find type `NotDefined` in this scope
|
|
//~| ERROR cannot find type `N` in this scope
|
|
//~| ERROR cannot find type `N` in this scope
|
|
|
|
#[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
|
|
|
|
fn main() {}
|