rust/tests/ui/higher-rank-trait-bounds/issue-42114.rs
Yuki Okushi cf5be0c3ac
Add regression test for #42114
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2023-01-15 05:52:22 +09:00

21 lines
203 B
Rust

// 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();
}