rust/tests/ui/traits/non-lifetime-via-dyn-builtin.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
305 B
Rust
Raw Normal View History

// revisions: current next
2023-12-14 06:11:28 -06:00
//[next] compile-flags: -Znext-solver
// 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>();
}