mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
12 lines
314 B
Rust
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() {}
|