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() {
49 #[cfg_attr(rustfmt, rustfmt::skip)]
57 #[cfg_attr(rustfmt, rustfmt::skip)]
58 let x = foo( a, b , c);
61 #[cfg_attr(rustfmt, rustfmt::skip)]
65 #[cfg_attr(rustfmt, rustfmt::skip)]
77 #[cfg_attr(rustfmt, rustfmt::skip)]
81 // Check that the skip attribute applies to other attributes.