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

11 lines
153 B
Rust
Raw Normal View History

2023-10-04 19:05:04 -05:00
// compile-flags: -Ztrait-solver=next
// check-pass
trait Foo {
fn test() -> impl Fn(u32) -> u32 {
|x| x.count_ones()
}
}
fn main() {}