1 // Test the skip attribute works
4 fn foo() { badly; formatted; stuff
14 impl LateLintPass for UsedUnderscoreBinding {
15 #[cfg_attr(rustfmt, rustfmt_skip)]
16 fn check_expr() { // comment
21 #[cfg_attr(rustfmt, rustfmt_skip)]
22 Box::new(self.inner.call(req).then(move |result| {
24 Ok(resp) => Box::new(future::done(Ok(resp))),
26 try_error!(clo_stderr, "{}", e);
27 Box::new(future::err(e))
33 fn skip_on_statements() {
35 #[cfg_attr(rustfmt, rustfmt_skip)]
43 #[cfg_attr(rustfmt, rustfmt_skip)]
44 let x = foo( a, b , c);
47 #[cfg_attr(rustfmt, rustfmt_skip)]
51 #[cfg_attr(rustfmt, rustfmt_skip)]
63 #[cfg_attr(rustfmt, rustfmt_skip)]