blob: f1904c76b6c15dbea4a757bba449296be566708f [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
//~| NOTE expected `isize`, found `S`
}
fn main() {}