os-rust/src/test/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.

16 lines
486 B
Text
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 14:28:26 +02:00
|
LL | let _ = [ a; 5 ];
| ^ the trait `Copy` is not implemented for `Foo`
2018-08-08 14:28:26 +02:00
|
= note: the `Copy` trait is required because the repeated element will be copied
2022-03-31 23:58:45 +09:00
help: consider annotating `Foo` with `#[derive(Copy)]`
|
LL | #[derive(Copy)]
|
2018-08-08 14:28:26 +02:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.