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

11 lines
147 B
Rust
Raw Normal View History

2023-12-14 06:11:28 -06:00
// compile-flags: -Znext-solver
2023-10-04 19:05:04 -05:00
// check-pass
trait Foo {
fn test() -> impl Fn(u32) -> u32 {
|x| x.count_ones()
}
}
fn main() {}