This commit is contained in:
Ralf Jung 2020-04-05 11:56:02 +02:00
parent 05a5895f0d
commit 315a3b96a4

View File

@ -0,0 +1,10 @@
// 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() {}