rust/tests/ui/consts/const-eval/issue-70804-fn-subtyping.rs
2024-02-16 20:02:50 +00:00

10 lines
197 B
Rust

//@ check-pass
const fn nested(x: (for<'a> fn(&'a ()), String)) -> (fn(&'static ()), String) {
x
}
pub const TEST: (fn(&'static ()), String) = nested((|_x| (), String::new()));
fn main() {}