3 // Regression test for #66975
5 #![feature(const_panic)]
6 #![feature(never_type)]
8 const VOID: ! = panic!();
9 //~^ WARN any use of this value will cause an error
10 //~| WARN this was previously accepted by the compiler but is being phased out
14 //~^ ERROR erroneous constant used