mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
17 lines
311 B
Rust
17 lines
311 B
Rust
// 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>();
|
|
}
|