rust/tests/ui/higher-ranked/trait-bounds/fn-ptr.rs
2023-12-14 15:22:37 +01:00

15 lines
243 B
Rust

// revisions: classic next
//[next] compile-flags: -Znext-solver
//[next] check-pass
fn ice()
where
for<'w> fn(&'w ()): Fn(&'w ()),
{
}
fn main() {
ice();
//[classic]~^ ERROR expected a `Fn(&'w ())` closure, found `fn(&'w ())`
}