rust/tests/source/issue-3434.rs
rchaser53 1f8553d66f add new attribute rustfmt::skip::macros
add test for function not having attribute
2019-03-21 00:18:51 +09:00

23 lines
347 B
Rust

#[rustfmt::skip::macros(html, skip_macro)]
fn main() {
let macro_result1 = html! { <div>
Hello</div>
}.to_string();
let macro_result2 = not_skip_macro! { <div>
Hello</div>
}.to_string();
skip_macro! {
this is a skip_macro here
};
foo();
}
fn foo() {
let macro_result1 = html! { <div>
Hello</div>
}.to_string();
}