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 21:52:22 +00:00
// check-pass
2020-01-11 01:15:54 +00:00
macro_rules! foo {
($doc: expr) => {
fn f() {
#[doc = $doc]
2020-01-09 21:52:22 +00:00
()
}
};
}
2020-01-11 01:15:54 +00:00
foo!("doc");
2020-01-09 21:52:22 +00:00
fn main() {}