rust/tests/ui/consts/const-for.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
165 B
Rust
Raw Normal View History

2021-07-29 00:56:03 +00:00
#![feature(const_for)]
#![feature(const_mut_refs)]
const _: () = {
for _ in 0..5 {}
//~^ error: cannot call
//~| error: cannot convert
2021-07-29 00:56:03 +00:00
};
fn main() {}