rust/src/test/ui/repeat-to-run-dtor-twice.stderr

12 lines
431 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0277]: the trait bound `Foo: std::marker::Copy` is not satisfied
2018-12-25 09:56:47 -06:00
--> $DIR/repeat-to-run-dtor-twice.rs:17:13
2018-08-08 07:28:26 -05:00
|
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`.