mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
10 lines
196 B
Rust
10 lines
196 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() {}
|