mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 17:26:12 +00:00
17 lines
519 B
Rust
17 lines
519 B
Rust
// 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 {}
|