mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +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();
|
||
|
}
|