2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: the trait bound `Foo<String>: Copy` is not satisfied
|
|
|
|
--> $DIR/trait-error.rs:7: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
|
|
|
|
|
|
|
|
= help: the following implementations were found:
|
2020-09-02 02:40:56 -05:00
|
|
|
<Foo<T> as Copy>
|
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`.
|