1
0
Fork 0
firefox/third_party/rust/derive_more/tests/index.rs
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

20 lines
340 B
Rust

#![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<i32>);
#[derive(Index)]
struct Numbers {
#[index]
numbers: Vec<i32>,
useless: bool,
}