rust/tests/ui/regions/forall-wf-reflexive.rs

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

16 lines
213 B
Rust
Raw Normal View History

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