about summary refs log tree commit diff
path: root/tests/ui/parser
diff options
context:
space:
mode:
authorbohan <bohan-zhang@foxmail.com>2023-12-23 15:57:24 +0800
committerbohan <bohan-zhang@foxmail.com>2023-12-26 16:10:29 +0800
commite16efbd23afe98d1bda104d850e0285591d3a5d8 (patch)
treee1443ff56e2edfb7cd6f73cbd812149fef373808 /tests/ui/parser
parent1ab783112ab4e4807304dbd249b39771246013ef (diff)
downloadrust-e16efbd23afe98d1bda104d850e0285591d3a5d8.tar.gz
rust-e16efbd23afe98d1bda104d850e0285591d3a5d8.zip
fallback `default` to `None` during ast-loweing for lifetime binder
Diffstat (limited to 'tests/ui/parser')
-rw-r--r--tests/ui/parser/issue-119042.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/parser/issue-119042.rs b/tests/ui/parser/issue-119042.rs
new file mode 100644
index 00000000000..a4fee169d1c
--- /dev/null
+++ b/tests/ui/parser/issue-119042.rs
@@ -0,0 +1,7 @@
+// check-pass
+
+macro_rules! a { ($ty:ty) => {} }
+
+a! { for<T = &i32> fn() }
+
+fn main() {}