about summary refs log tree commit diff
path: root/tests/rustdoc/inline_cross/auxiliary/non_lifetime_binders.rs
blob: 9170be16892b9fb6c1fc0883f739c48a0e941c79 (plain)
1
2
3
4
5
6
7
8
9
10
#![feature(non_lifetime_binders)]

pub trait Trait<T> {}

pub fn f(_: impl for<T> Trait<T>) {}

pub fn g<T>(_: T)
where
    T: for<U> Trait<U>,
{}