File: garbage_attribute.rs

package info (click to toggle)
rust-num-enum 0.5.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 348 kB
  • sloc: makefile: 2
file content (12 lines) | stat: -rw-r--r-- 148 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#[derive(num_enum::TryFromPrimitive)]
#[repr(u8)]
enum Numbers {
    Zero = 0,
    #[num_enum(garbage)]
    One = 1,
    Two = 2,
}

fn main() {

}