]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/miri_unleashed/non_const_fn.rs
1 // compile-flags: -Zunleash-the-miri-inside-of-you
3 // A test demonstrating that we prevent calling non-const fn during CTFE.
8 //~^ ERROR could not evaluate static initializer
9 //~| NOTE calling non-const function `foo`