summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/non-lifetime-via-dyn-builtin.rs
blob: 9a8a5ced2e250f89d0e7d01ede2c11b781d1128b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// revisions: current next
//[next] compile-flags: -Ztrait-solver=next
// check-pass

#![feature(non_lifetime_binders)]
//~^ WARN the feature `non_lifetime_binders` is incomplete and may not be safe

fn trivial<A>()
where
    for<B> dyn Fn(A, *const B): Fn(A, *const B),
{
}

fn main() {
    trivial::<u8>();
}