blob: 21ee64fa6d937a83b74abe74913112ab1203c23a [file] [log] [blame]
// build-fail
// Regression test for #66975
#![warn(const_err)]
#![feature(const_panic)]
#![feature(never_type)]
struct PrintName;
impl PrintName {
const VOID: ! = panic!();
//~^ WARN any use of this value will cause an error
}
fn main() {
let _ = PrintName::VOID;
//~^ ERROR erroneous constant used
}