use anchor_lang::prelude::*;use anchor_spl::token::TokenAccount;#[derive(Accounts, Clone)]pub struct InstructionTest<'info> { pub account: Account<'info, TokenAccount>,}pub fn test(ctx: Context<InstructionTest>) { let account_info = ctx.accounts.account.to_account_info(); let unchecked_account = UncheckedAccount::try_from(&account_info); // report error}
account_info
does not live long enough