rust/tests/ui/macros/issue-68058.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
161 B
Rust
Raw Normal View History

2020-01-09 15:52:22 -06:00
// check-pass
2020-01-10 19:15:54 -06:00
macro_rules! foo {
($doc: expr) => {
fn f() {
#[doc = $doc]
2020-01-09 15:52:22 -06:00
()
}
};
}
2020-01-10 19:15:54 -06:00
foo!("doc");
2020-01-09 15:52:22 -06:00
fn main() {}