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 {
185 Some(p) => baz!(one_item_macro_as_expression_which_is_also_loooooooooooooooong),
191 .compare_exchandsfasdsdfgsdgsdfgsdfgsdfgsdfgsdfgfsfdsage_weak(
206 if real_total <= limit && !pre_line_comments &&
207 !items.into_iter().any(|item| item.as_ref().is_multiline())
209 DefinitiveListTactic::Horizontal
240 let opt = Some(Struct(
251 do_thing(x, |param| {
265 lllllllllong_argument_one,
266 lllllllllong_argument_two,
267 lllllllllllllllllllllllllllllong_argument_three,
274 pparam1param1param1param1param1param1param1param1param1param1aram1,
288 Some(x) => somefunc(anotherfunc(
298 Some(x) => (1, 2, |x| {
303 Some(x) => SomeStruct {
304 f1: long_argument_one,
305 f2: long_argument_two,
306 f3: long_argument_three,
308 None => Ok(SomeStruct {
309 f1: long_argument_one,
310 f2: long_argument_two,
311 f3: long_argument_three,
317 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
321 yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy,