rust/tests/ui/consts/const-eval/field-access-after-const-eval-fail-in-ty.rs
León Orell Valerian Liehr 4f773af1cc
Check for presence of field in typeck results before visiting it
Co-authored-by: Michael Goulet <michael@errs.io>
2024-02-03 19:41:18 +01:00

6 lines
130 B
Rust

// Regression test for issue #120615.
fn main() {
[(); loop {}].field; //~ ERROR constant evaluation is taking a long time
}