blob: 1667c77d124c5f3e3675cd32c46b8237a27f2577 [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 `S`
}
fn main() {}