rust/tests/ui/consts/const-eval/issue-70804-fn-subtyping.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
197 B
Rust
Raw Normal View History

2020-04-05 04:56:02 -05:00
//@ 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() {}