rust/tests/ui/traits/next-solver/deduce-closure-signature-after-normalization.rs

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

12 lines
314 B
Rust
Raw Normal View History

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