about summary refs log tree commit diff
path: root/tests/ui/traits/non_lifetime_binders/basic.rs
blob: 09c0244ec95405b6523100499b3dd3cd2a04fa5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//@ check-pass
// Basic test that show's we can successfully typeck a `for<T>` where clause.

#![feature(sized_hierarchy)]
#![feature(non_lifetime_binders)]
//~^ WARN the feature `non_lifetime_binders` is incomplete

use std::marker::PointeeSized;

trait Trait: PointeeSized {}

impl<T: PointeeSized> Trait for T {}

fn foo()
where
    for<T> T: Trait,
{
}

fn main() {
    foo();
}