2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: the trait bound `Foo: Copy` is not satisfied
|
2022-04-11 11:38:48 -05:00
|
|
|
--> $DIR/repeat-to-run-dtor-twice.rs:17:15
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let _ = [ a; 5 ];
|
2022-04-11 11:38:48 -05:00
|
|
|
| ^ the trait `Copy` is not implemented for `Foo`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2022-04-28 04:40:42 -05:00
|
|
|
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
2022-03-31 09:58:45 -05:00
|
|
|
help: consider annotating `Foo` with `#[derive(Copy)]`
|
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + #[derive(Copy)]
|
|
|
|
LL | struct Foo {
|
2022-03-31 09:58:45 -05:00
|
|
|
|
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|