summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/non_lifetime_binders/on-rpit.rs
blob: c501e057e28309617d3974091ea7853cce694a97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// check-pass

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

trait Trait<T: ?Sized> {}

impl<T: ?Sized> Trait<T> for i32 {}

fn produce() -> impl for<T> Trait<T> {
    16
}

fn main() {
    let _ = produce();
}