1 // rustfmt-array_layout: Block
2 // rustfmt-fn_call_style: Block
3 // rustfmt-control_style: Rfc
4 // Test expressions with block formatting.
10 let foo = [a_long_name, a_very_lng_name, a_long_name];
92 test123: value_one_two_three_four,
99 let a = WeightedChoice::new(&mut [
100 Weighted { weight: x, item: 0 },
101 Weighted { weight: 1, item: 1 },
102 Weighted { weight: x, item: 2 },
103 Weighted { weight: 1, item: 3 },
107 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
108 yyyyyyyyyyyyyyyyyyyyyyyyyyy,
113 [1 + 3, 4, 5, 6, 7, 7, fncall::<Vec<_>>(3 - 1)]
116 fn function_calls() {
117 let items = itemize_list(
127 width: remaining_width,
146 width: remaining_width,
173 baz!(one_item_macro_which_is_also_loooooooooooooooooooooooooooooooooooooooooooooooong);
175 let _ = match option {
187 Some(p) => baz!(one_item_macro_as_expression_which_is_also_loooooooooooooooong),
193 .compare_exchandsfasdsdfgsdgsdfgsdfgsdfgsdfgsdfgfsfdsage_weak(
208 if real_total <= limit && !pre_line_comments &&
209 !items.into_iter().any(|item| item.as_ref().is_multiline())
211 DefinitiveListTactic::Horizontal
242 let opt = Some(Struct(
253 do_thing(x, |param| {
267 lllllllllong_argument_one,
268 lllllllllong_argument_two,
269 lllllllllllllllllllllllllllllong_argument_three,
276 pparam1param1param1param1param1param1param1param1param1param1aram1,
290 Some(x) => somefunc(anotherfunc(
300 Some(x) => (1, 2, |x| {
305 Some(x) => SomeStruct {
306 f1: long_argument_one,
307 f2: long_argument_two,
308 f3: long_argument_three,
310 None => Ok(SomeStruct {
311 f1: long_argument_one,
312 f2: long_argument_two,
313 f3: long_argument_three,
319 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
324 yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy,