mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
8 lines
156 B
Rust
8 lines
156 B
Rust
#[derive(Copy, Clone)]
|
|
struct Foo<T>(T);
|
|
|
|
fn main() {
|
|
[Foo(String::new()); 4];
|
|
//~^ ERROR the trait bound `String: Copy` is not satisfied [E0277]
|
|
}
|