2 // compile-flags: -Zunleash-the-miri-inside-of-you
6 // A test demonstrating that we prevent calling non-const fn during CTFE.
10 const C: () = foo(); //~ WARN: skipping const checks
11 //~^ WARN any use of this value will cause an error
15 //~^ ERROR: evaluation of constant expression failed
16 //~| WARN: erroneous constant used [const_err]