rust/tests/ui/large_enum_variant_no_std.rs
lakshay bhatia b738d96325 Improve Help Message in large_enum_variant to satisfy #[no_std]
- Updated the `help:` text to include a more general suggestion
- Ensures compatibility with `#[no_std]` environments where boxing is
  still possible via `alloc`.
2025-07-20 13:51:45 +05:30

8 lines
158 B
Rust

#![no_std]
#![warn(clippy::large_enum_variant)]
enum Myenum {
//~^ ERROR: large size difference between variants
Small(u8),
Large([u8; 1024]),
}