Skip to content

Commit

Permalink
Add regression test for rust-lang#42114
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Okushi <[email protected]>
  • Loading branch information
JohnTitor committed Jan 14, 2023
1 parent 4b51adf commit cf5be0c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/ui/higher-rank-trait-bounds/issue-42114.rs
Original file line number Diff line number Diff line change
@@ -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();
}

0 comments on commit cf5be0c

Please sign in to comment.