Compile error when using the offset_of
macro in solana-program crate
#35608
Labels
community
Community contribution
offset_of
macro in solana-program crate
#35608
Problem
On the latest nightly build of rust, the solana-program crate fails to compile because the use of the
offset_of
macro is considered an experimental feature.Proposed Solution
Add the feature flag
#![feature(offset_of)]
to top of the solana-programlib.rs
file.The text was updated successfully, but these errors were encountered: