I'm trying This example by anchor to initialize large accounts and using zero_copy
on them.
I'm getting this error on this
the trait bound `[Event; 25000]: Zeroable` is not satisfied
--> src/lib.rs:158:17
|
158 | pub events: [Event; 25000],
| ^^^^^^^^^^^^^^ the trait `Zeroable` is not implemented for `[Event; 25000]`
|
= help: the following other types implement trait `Zeroable`:
*const [T]
*mut [T]
[T; 0]
[T; 1024]
[T; 10]
[T; 11]
[T; 128]
[T; 12]
and 36 others
note: required by a bound in `_::{closure#0}::check::assert_impl`
--> src/lib.rs:155:1
|
155 | #[account(zero_copy)]
| ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl`
156 | / #[repr(C)]
157 | | pub struct EventQ {
158 | | pub events: [Event; 25000],
159 | | }
| |_- required by a bound in this
= note: this error originates in the derive macro `::bytemuck::Zeroable`
error[E0277]: the trait bound `[Event; 25000]: Pod` is not satisfied
--> src/lib.rs:158:17
|
158 | pub events: [Event; 25000],
| ^^^^^^^^^^^^^^ the trait `Pod` is not implemented for `[Event; 25000]`
|
= help: the following other types implement trait `Pod`:
[T; 0]
[T; 1024]
[T; 10]
[T; 11]
[T; 128]
[T; 12]
[T; 13]
[T; 14]
and 34 others
note: required by a bound in `_::{closure#0}::check::assert_impl`
--> src/lib.rs:155:1
|
155 | #[account(zero_copy)]
| ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl`
= note: this error originates in the derive macro `::bytemuck::Pod`