mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
16 lines
212 B
Rust
16 lines
212 B
Rust
|
// Test that we consider `for<'a> T: 'a` to be sufficient to prove
|
||
|
// that `for<'a> T: 'a`.
|
||
|
//
|
||
|
// check-pass
|
||
|
|
||
|
#![allow(warnings)]
|
||
|
|
||
|
fn self_wf1<T>()
|
||
|
where
|
||
|
for<'a> T: 'a,
|
||
|
{
|
||
|
self_wf1::<T>();
|
||
|
}
|
||
|
|
||
|
fn main() {}
|