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

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

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() {}