]> git.lizzy.rs Git - rust.git/blob - src/test/ui/repeat-expr/repeat-to-run-dtor-twice.stderr
Rollup merge of #105843 - compiler-errors:sugg-const, r=lcnr
[rust.git] / src / test / ui / repeat-expr / repeat-to-run-dtor-twice.stderr
1 error[E0277]: the trait bound `Foo: Copy` is not satisfied
2   --> $DIR/repeat-to-run-dtor-twice.rs:17:15
3    |
4 LL |     let _ = [ a; 5 ];
5    |               ^ the trait `Copy` is not implemented for `Foo`
6    |
7    = note: the `Copy` trait is required because this value will be copied for each element of the array
8 help: consider annotating `Foo` with `#[derive(Copy)]`
9    |
10 LL | #[derive(Copy)]
11    |
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.