cannot index into a value of type `&mut Rc<RefCell<&mut [u8]>>`
Getting this error in the account_data native example
when I write
address_info.serialize(&mut &mut address_info_account.data.borrow_mut()[..])?;
in the create.rs file in the instructions folder
This is the error that I get, while the same doesn't happen in the actual repository
Would appreciate help
@krishhh16
Get the same error! Following the discussion.
Works with rustc 1.78.0 (9b00956e5 2024-04-29)
Would help to provide diagnostics like rust and solana version
Verified that it works fine with
rustc 1.75.0 (82e1608df 2023-12-21)
(requirement for solana-program v1.18.17)