rust/tests/ui/consts/const-eval/field-access-after-const-eval-fail-in-ty.rs

6 lines
130 B
Rust
Raw Normal View History

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