]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/issue-68058.rs
Rollup merge of #106931 - Ezrashaw:docs-e0208, r=compiler-errors
[rust.git] / tests / ui / macros / issue-68058.rs
1 // check-pass
2
3 macro_rules! foo {
4     ($doc: expr) => {
5         fn f() {
6             #[doc = $doc]
7             ()
8         }
9     };
10 }
11
12 foo!("doc");
13
14 fn main() {}