#![cfg_attr(not(feature = "std"), no_std)] #![allow(dead_code, unused_imports)] #[cfg(not(feature = "std"))] extern crate alloc; #[cfg(not(feature = "std"))] use alloc::vec::Vec; use derive_more::Index; #[derive(Index)] struct MyVec(Vec); #[derive(Index)] struct Numbers { #[index] numbers: Vec, useless: bool, }