1 // rustfmt-single_line_if_else_max_width: 0
2 // Test chain formatting.
5 // Don't put chains on a single line if it wasn't so in source.
11 bbbbbbbbbbbbbbbbbbb.ccccccccccccccccccccccccccccccccccccc
12 .ddddddddddddddddddddddddddd();
14 bbbbbbbbbbbbbbbbbbb.ccccccccccccccccccccccccccccccccccccc
15 .ddddddddddddddddddddddddddd
18 // Test case where first chain element isn't a path, but is shorter than
20 x().y(|| match cond() {
25 loong_func().quux(move || if true {
31 some_fuuuuuuuuunction().method_call_a(aaaaa, bbbbb, |c| {
36 some_fuuuuuuuuunction()
37 .method_call_a(aaaaa, bbbbb, |c| {
41 .method_call_b(aaaaa, bbbbb, |c| {
46 fffffffffffffffffffffffffffffffffff(a, {
47 SCRIPT_TASK_ROOT.with(|root| {
48 *root.borrow_mut() = Some(&script_task);
52 let suuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuum = xxxxxxx.map(|x| x + 5)
54 .fold(0, |acc, x| acc + x);
56 aaaaaaaaaaaaaaaa.map(|x| {
60 .filter(some_mod::some_filter)
86 // params are 1-indexed
87 stack.push(mparams[match cur.to_digit(10) {
88 Some(d) => d as usize - 1,
89 None => return Err("bad param number".to_owned()),
127 fn is_replaced_content() -> bool {
128 constellat.send(ConstellationMsg::ViewportConstrained(self.id, constraints))
135 std::mem::transmute(dl.symbol::<()>("init").unwrap())
140 let y = expr.kaas()?.test();
141 let loooooooooooooooooooooooooooooooooooooooooong =
142 does_this?.look?.good?.should_we_break?.after_the_first_question_mark?;
143 let yyyy = expr?.another?.another?.another?.another?.another?.another?.another?.another?.test();
144 let zzzz = expr?.another?.another?.another?.another?;
145 let aaa = x??????????????????????????????????????????????????????????????????????????;
148 .loooooooooooooooooooooooooooooooooooooong()
161 |tcx| tcx.lookup_item_type(def_id).generics)?;
162 fooooooooooooooooooooooooooo()?
164 .baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaz()?;