1 // Test chain formatting.
4 // Don't put chains on a single line if it wasn't so in source.
9 bbbbbbbbbbbbbbbbbbb.ccccccccccccccccccccccccccccccccccccc
10 .ddddddddddddddddddddddddddd();
12 bbbbbbbbbbbbbbbbbbb.ccccccccccccccccccccccccccccccccccccc.ddddddddddddddddddddddddddd.eeeeeeee();
14 // Test case where first chain element isn't a path, but is shorter than
17 .y(|| match cond() { true => (), false => () });
20 .quux(move || if true {
26 some_fuuuuuuuuunction()
27 .method_call_a(aaaaa, bbbbb, |c| {
32 some_fuuuuuuuuunction().method_call_a(aaaaa, bbbbb, |c| {
35 }).method_call_b(aaaaa, bbbbb, |c| {
40 fffffffffffffffffffffffffffffffffff(a,
44 *root.borrow_mut() = Some(&script_task);
48 let suuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuum = xxxxxxx
51 .fold(0, |acc, x| acc + x);
53 aaaaaaaaaaaaaaaa.map(|x| {
56 }).filter(some_mod::some_filter)
68 }.method_call().method_call();
80 // params are 1-indexed
81 stack.push(mparams[match cur.to_digit(10) {
82 Some(d) => d as usize - 1,
83 None => return Err("bad param number".to_owned()),
90 if cond { some(); } else { none(); }
94 Foo { x: val } .baz(|| { /*force multiline */ }) .quux();
96 Foo { y: i_am_multi_line, z: ok }
102 a + match x { true => "yay!", false => "boo!" }.bar()
105 fn is_replaced_content() -> bool {
106 constellat.send(ConstellationMsg::ViewportConstrained(
107 self.id, constraints)).unwrap();
113 std::mem::transmute(dl.symbol::<()>("init").unwrap())
118 let y = expr.kaas()?.test();
119 let loooooooooooooooooooooooooooooooooooooooooong = does_this?.look?.good?.should_we_break?.after_the_first_question_mark?;
120 let yyyy = expr?.another?.another?.another?.another?.another?.another?.another?.another?.test();
121 let zzzz = expr?.another?.another?.another?.another?;
122 let aaa = x ???????????? ?????????????? ???? ????? ?????????????? ????????? ?????????????? ??;
124 let y = a.very .loooooooooooooooooooooooooooooooooooooong() .chain()
125 .inside() .weeeeeeeeeeeeeee()? .test() .0
133 |tcx| tcx.lookup_item_type(def_id).generics)?;
134 fooooooooooooooooooooooooooo()?.bar()?.baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaz()?;