Skip to content

Commit 30b963c

Browse files
authored
Rollup merge of #106879 - JohnTitor:issue-42114, r=compiler-errors
Add regression test for #42114 Closes #42114 r? compiler-errors Signed-off-by: Yuki Okushi <[email protected]>
2 parents 08ef0ce + cf5be0c commit 30b963c

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)