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

11 lines
147 B
Rust
Raw Normal View History

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