rust/tests/ui/traits/next-solver/select-alias-bound-as-param.rs

14 lines
172 B
Rust

//@ check-pass
//@ compile-flags: -Znext-solver
pub(crate) fn y() -> impl FnMut() {
|| {}
}
pub(crate) fn x(a: (), b: ()) {
let x = ();
y()()
}
fn main() {}