]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/const-eval/const_fn_ptr_fail.rs
2 // compile-flags: -Zunleash-the-miri-inside-of-you
5 fn double(x
: usize) -> usize { x * 2 }
6 const X
: fn(usize) -> usize = double
;
8 const fn bar(x
: usize) -> usize {
9 X(x
) // FIXME: this should error someday