rust/tests/ui/repeat-expr/repeat-to-run-dtor-twice.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
524 B
Plaintext
Raw Normal View History

error[E0277]: the trait bound `Foo: Copy` is not satisfied
--> $DIR/repeat-to-run-dtor-twice.rs:17:15
2018-08-08 07:28:26 -05:00
|
LL | let _ = [ a; 5 ];
| ^ the trait `Copy` is not implemented for `Foo`
2018-08-08 07:28:26 -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`.