rust/tests/ui/higher-ranked/trait-bounds/issue-42114.rs
2024-02-16 20:02:50 +00:00

21 lines
204 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();
}