summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-for.rs
blob: 8db2485355833d3b58313271859f15afbc05c843 (plain)
1
2
3
4
5
6
7
8
9
10
#![feature(const_for)]
#![feature(const_mut_refs)]

const _: () = {
    for _ in 0..5 {}
    //~^ error: cannot call
    //~| error: cannot convert
};

fn main() {}