summary refs log tree commit diff
path: root/src/test/compile-fail/issue-52443.rs
blob: e1f07ff96beed735a3981f14a8a399b13d46a8ec (plain)
1
2
3
4
5
6
7
8
fn main() {
    [(); & { loop { continue } } ]; //~ ERROR mismatched types
    [(); loop { break }]; //~ ERROR mismatched types
    [(); {while true {break}; 0}]; //~ ERROR constant contains unimplemented expression type
    [(); { for _ in 0usize.. {}; 0}]; //~ ERROR calls in constants are limited to constant functions
    //~^ ERROR constant contains unimplemented expression type
    //~| ERROR evaluation of constant value failed
}