rust/src/test/ui/consts/const-eval/issue-70804-fn-subtyping.rs
2020-04-05 11:56:02 +02:00

11 lines
218 B
Rust

// check-pass
#![feature(const_fn)]
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() {}