rust/tests/target/issue-1127.rs

26 lines
810 B
Rust
Raw Normal View History

2018-06-26 18:23:27 -05:00
// rustfmt-max_width: 120
// rustfmt-match_arm_blocks: false
// 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 =>
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 =>
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 =>
a_very_very_very_very_very_very_very_very_very_very_very_long_function_name(),
};
}