rust/tests/target/enum.rs

35 lines
483 B
Rust
Raw Normal View History

2015-05-29 12:41:26 +02:00
// Enums test
#[atrr]
pub enum Test {
A,
B(u32, A /* comment */),
/// Doc comment
C,
}
pub enum Foo<'a, Y: Baz>
where X: Whatever
{
A,
}
enum EmtpyWithComment {
// Some comment
}
// C-style enum
enum Bar {
A = 1,
#[someAttr(test)]
B = 2, // comment
C,
}
enum LongVariants {
First(LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOONG, // small comment
VARIANT),
// This is the second variant
Second,
}