summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-eval/panic-assoc-never-type.rs
blob: 28edf51440233a6f5779212745c395a3292a6bdf (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; //~ constant
}