2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: the trait bound `Foo<String>: Copy` is not satisfied
|
2021-01-26 16:49:30 -06:00
|
|
|
--> $DIR/trait-error.rs:5:5
|
2019-06-12 02:46:56 -05:00
|
|
|
|
|
|
|
|
LL | [Foo(String::new()); 4];
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `Foo<String>`
|
2019-06-12 02:46:56 -05:00
|
|
|
|
|
2021-12-13 14:56:40 -06:00
|
|
|
= help: the trait `Copy` is implemented for `Foo<T>`
|
2019-06-12 02:46:56 -05:00
|
|
|
= note: the `Copy` trait is required because the repeated element will be copied
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|