blob: 1abe708d19eb29b9584a5598b78679895d5ed85f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// build-fail
// Regression test for #66975
#![feature(never_type)]
struct PrintName;
impl PrintName {
const VOID: ! = panic!();
//~^ ERROR evaluation of constant value failed
}
fn main() {
let _ = PrintName::VOID; //~ erroneous constant used
}
|