2018-06-27 01:23:27 +02:00
|
|
|
// rustfmt-max_width: 120
|
2017-11-27 17:35:27 +13:00
|
|
|
// rustfmt-match_arm_blocks: false
|
2017-02-28 15:46:10 -05: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 {
|
|
|
|
TestEnum::AVeryVeryLongEnumName => a_very_very_very_very_very_very_very_very_very_very_very_long_function_name(),
|
|
|
|
TestEnum::AnotherVeryLongEnumName => a_very_very_very_very_very_very_very_very_very_very_very_long_function_name(),
|
|
|
|
TestEnum::TheLastVeryLongEnumName => a_very_very_very_very_very_very_very_very_very_very_very_long_function_name(),
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|