File: garbage_attribute.rs

package info (click to toggle)
rust-num-enum 0.7.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 468 kB
  • sloc: makefile: 2
file content (12 lines) | stat: -rw-r--r-- 148 bytes parent folder | download | duplicates (6)
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() {

}