rust/src/test/ui/consts/rfc-2203-const-array-repeat-exprs/const-fns.stderr

14 lines
636 B
Plaintext
Raw Normal View History

2019-06-13 11:30:49 -05:00
error[E0277]: the trait bound `std::option::Option<Bar>: std::marker::Copy` is not satisfied
--> $DIR/const-fns.rs:18:35
|
LL | const ARR: [Option<Bar>; 2] = [type_no_copy(); 2];
| ^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::option::Option<Bar>`
|
= help: the following implementations were found:
<std::option::Option<T> as std::marker::Copy>
= 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`.