add test
This commit is contained in:
parent
05a5895f0d
commit
315a3b96a4
10
src/test/ui/consts/const-eval/issue-70804-fn-subtyping.rs
Normal file
10
src/test/ui/consts/const-eval/issue-70804-fn-subtyping.rs
Normal 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() {}
|
Loading…
x
Reference in New Issue
Block a user