]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/control-flow/loop.rs
1 const _
: () = loop { break (); }
;
3 static FOO
: i32 = loop { break 4; }
;
10 const BAR
: i32 = loop { break 4; }
;
14 const BAR
: i32 = loop { break 4; }
;
17 fn non_const_outside() {
18 const fn const_inside() {
23 const fn const_outside() {
24 fn non_const_inside() {
53 for i
in 0..4 { //~ ERROR `for` is not allowed in a `const`
57 for i
in 0..4 { //~ ERROR `for` is not allowed in a `const`
86 while let None
= Some(x
) { }
87 while let None
= Some(x
) { }