rust/tests/ui/consts/const-for.rs
2023-01-11 09:32:08 +00:00

11 lines
165 B
Rust

#![feature(const_for)]
#![feature(const_mut_refs)]
const _: () = {
for _ in 0..5 {}
//~^ error: cannot call
//~| error: cannot convert
};
fn main() {}