rust/tests/ui/traits/next-solver/deduce-closure-signature-after-normalization.rs
2024-02-16 20:02:50 +00:00

12 lines
314 B
Rust

//@ compile-flags: -Znext-solver
// FIXME(-Znext-solver): This test is currently broken because the `deduce_closure_signature`
// is unable to look at nested obligations.
trait Foo {
fn test() -> impl Fn(u32) -> u32 {
|x| x.count_ones()
//~^ ERROR type annotations needed
}
}
fn main() {}