rust/src/test/ui/repeat-to-run-dtor-twice.stderr
2018-12-25 21:08:33 -07:00

12 lines
431 B
Plaintext

error[E0277]: the trait bound `Foo: std::marker::Copy` is not satisfied
--> $DIR/repeat-to-run-dtor-twice.rs:17:13
|
LL | let _ = [ a; 5 ];
| ^^^^^^^^ the trait `std::marker::Copy` is not implemented for `Foo`
|
= 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`.