Skip to content

Commit cf5be0c

Browse files
committed
Add regression test for #42114
Signed-off-by: Yuki Okushi <[email protected]>
1 parent 4b51adf commit cf5be0c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// check-pass
2+
3+
fn lifetime<'a>()
4+
where
5+
&'a (): 'a,
6+
{
7+
/* do nothing */
8+
}
9+
10+
fn doesnt_work()
11+
where
12+
for<'a> &'a (): 'a,
13+
{
14+
/* do nothing */
15+
}
16+
17+
fn main() {
18+
lifetime();
19+
doesnt_work();
20+
}

0 commit comments

Comments
 (0)