blob: 82f101b47cfebba6cedece8ca3e45d87307ba46c [file] [log] [blame]
// Check that error in constant evaluation of enum discriminant
// provides the context for what caused the evaluation.
struct S(i32);
const CONSTANT: S = S(0);
enum E {
V = CONSTANT,
//~^ ERROR mismatched types
//~| expected `isize`, found struct `S`
}
fn main() {}