Skip to content

Commit 315a3b9

Browse files
committed
add test
1 parent 05a5895 commit 315a3b9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// check-pass
2+
#![feature(const_fn)]
3+
4+
const fn nested(x: (for<'a> fn(&'a ()), String)) -> (fn(&'static ()), String) {
5+
x
6+
}
7+
8+
pub const TEST: (fn(&'static ()), String) = nested((|_x| (), String::new()));
9+
10+
fn main() {}

0 commit comments

Comments
 (0)