rust/tests/ui/higher-ranked/trait-bounds/issue-42114.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
203 B
Rust
Raw Normal View History

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