Skip to content

Commit

Permalink
Rollup merge of rust-lang#106879 - JohnTitor:issue-42114, r=compiler-…
Browse files Browse the repository at this point in the history
…errors

Add regression test for rust-lang#42114

Closes rust-lang#42114
r? compiler-errors
Signed-off-by: Yuki Okushi <[email protected]>
  • Loading branch information
matthiaskrgr authored Jan 15, 2023
2 parents 08ef0ce + cf5be0c commit 30b963c
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 30b963c

Please sign in to comment.