error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants --> $DIR/const-for.rs:5:14 | LL | for _ in 0..5 {} | ^^^^ error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants --> $DIR/const-for.rs:5:14 | LL | for _ in 0..5 {} | ^^^^ error: aborting due to 2 previous errors For more information about this error, try `rustc --explain E0015`.