blob: 893bfd87715f014f3f53c1a2c64a4e1a6bceedb6 [file] [edit]
//@ check-pass
// Basic test that show's we can successfully typeck a `for<T>` where clause.
#![feature(sized_hierarchy)]
#![feature(non_lifetime_binders)]
use std::marker::PointeeSized;
trait Trait: PointeeSized {}
impl<T: PointeeSized> Trait for T {}
fn foo()
where
for<T> T: Trait,
{
}
fn main() {
foo();
}