26 lines
399 B
Rust
26 lines
399 B
Rust
// rustfmt-use_small_heuristics: Default
|
|
|
|
enum Lorem {
|
|
Ipsum,
|
|
Dolor(bool),
|
|
Sit {
|
|
amet: Consectetur,
|
|
adipiscing: Elit,
|
|
},
|
|
}
|
|
|
|
fn main() {
|
|
lorem("lorem", "ipsum", "dolor", "sit", "amet", "consectetur", "adipiscing");
|
|
|
|
let lorem = Lorem {
|
|
ipsum: dolor,
|
|
sit: amet,
|
|
};
|
|
|
|
let lorem = if ipsum {
|
|
dolor
|
|
} else {
|
|
sit
|
|
};
|
|
}
|