mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-04 17:22:19 +00:00
10 lines
142 B
Rust
10 lines
142 B
Rust
// gate-test-const_for
|
|
|
|
const _: () = {
|
|
for _ in 0..5 {}
|
|
//~^ ERROR cannot use `for`
|
|
//~| ERROR cannot use `for`
|
|
};
|
|
|
|
fn main() {}
|