mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
21 lines
203 B
Rust
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();
|
|
}
|