blob: 3986930f8e63147f73f42cf6a7ea6f042328f732 [file] [edit]
// This test ensures that the macro generated by the proc macro has the correct
// "item-decl" code block.
// Regression test for <https://github.com/rust-lang/rust/issues/79289>.
//@ aux-build:generated_macro.rs
#![crate_name = "foo"]
extern crate generated_macro;
//@ has 'foo/macro.my_generated_macro.html'
//@ matches - '//*[@class="rust item-decl"]/code' \
// 'macro_rules! my_generated_macro \{\s+\(\$my_macro_parameter:expr\) => \{ ... \};\s+\}'
#[derive(generated_macro::MyDeriveMacro)]
struct MyStruct {}