]>
git.proxmox.com Git - rustc.git/blob - tests/ui/consts/const-eval/const-eval-span.rs
1 // Check that error in constant evaluation of enum discriminant
2 // provides the context for what caused the evaluation.
6 const CONSTANT
: S
= S(0);
10 //~^ ERROR mismatched types
11 //~| expected `isize`, found struct `S`