2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2024-12-24 23:37:30 +08:00
|
|
|
// Basic test that show's we can successfully typeck a `for<T>` where clause.
|
2023-02-06 23:53:24 +00:00
|
|
|
|
|
|
|
|
#![feature(non_lifetime_binders)]
|
|
|
|
|
//~^ WARN the feature `non_lifetime_binders` is incomplete
|
|
|
|
|
|
|
|
|
|
trait Trait {}
|
|
|
|
|
|
|
|
|
|
impl<T: ?Sized> Trait for T {}
|
|
|
|
|
|
|
|
|
|
fn foo()
|
|
|
|
|
where
|
|
|
|
|
for<T> T: Trait,
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
foo();
|
|
|
|
|
}
|