Add regression test for #42114

Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
Yuki Okushi 2023-01-15 05:52:22 +09:00
parent 4b51adf6ff
commit cf5be0c3ac
No known key found for this signature in database
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
// check-pass
fn lifetime<'a>()
where
&'a (): 'a,
{
/* do nothing */
}
fn doesnt_work()
where
for<'a> &'a (): 'a,
{
/* do nothing */
}
fn main() {
lifetime();
doesnt_work();
}