2017-02-28 14:46:10 -06:00
|
|
|
// rustfmt-max_width:120
|
2017-11-26 22:35:27 -06:00
|
|
|
// rustfmt-match_arm_blocks: false
|
2017-02-28 14:46:10 -06:00
|
|
|
// rustfmt-match_block_trailing_comma: true
|
|
|
|
|
|
|
|
fn a_very_very_very_very_very_very_very_very_very_very_very_long_function_name() -> i32 {
|
|
|
|
42
|
|
|
|
}
|
|
|
|
|
|
|
|
enum TestEnum {
|
|
|
|
AVeryVeryLongEnumName,
|
|
|
|
AnotherVeryLongEnumName,
|
|
|
|
TheLastVeryLongEnumName,
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let var = TestEnum::AVeryVeryLongEnumName;
|
|
|
|
let num = match var {
|
2017-03-01 20:03:32 -06:00
|
|
|
TestEnum::AVeryVeryLongEnumName =>
|
2017-02-28 14:46:10 -06:00
|
|
|
a_very_very_very_very_very_very_very_very_very_very_very_long_function_name(),
|
2017-03-01 20:03:32 -06:00
|
|
|
TestEnum::AnotherVeryLongEnumName =>
|
2017-02-28 14:46:10 -06:00
|
|
|
a_very_very_very_very_very_very_very_very_very_very_very_long_function_name(),
|
2017-03-01 20:03:32 -06:00
|
|
|
TestEnum::TheLastVeryLongEnumName =>
|
2017-02-28 14:46:10 -06:00
|
|
|
a_very_very_very_very_very_very_very_very_very_very_very_long_function_name(),
|
|
|
|
};
|
|
|
|
}
|