summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/expansion-in-attrs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/async-await/expansion-in-attrs.rs')
-rw-r--r--tests/ui/async-await/expansion-in-attrs.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/async-await/expansion-in-attrs.rs b/tests/ui/async-await/expansion-in-attrs.rs
new file mode 100644
index 000000000..af77c3463
--- /dev/null
+++ b/tests/ui/async-await/expansion-in-attrs.rs
@@ -0,0 +1,13 @@
+// check-pass
+// edition:2018
+
+macro_rules! with_doc {
+ ($doc: expr) => {
+ #[doc = $doc]
+ async fn f() {}
+ };
+}
+
+with_doc!(concat!(""));
+
+fn main() {}