mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 09:13:07 +03:00
b738d96325
- Updated the `help:` text to include a more general suggestion - Ensures compatibility with `#[no_std]` environments where boxing is still possible via `alloc`.
9 lines
158 B
Rust
9 lines
158 B
Rust
#![no_std]
|
|
#![warn(clippy::large_enum_variant)]
|
|
|
|
enum Myenum {
|
|
//~^ ERROR: large size difference between variants
|
|
Small(u8),
|
|
Large([u8; 1024]),
|
|
}
|