blob: eaca865b8e19f30a7c3802a03431697034b6e414 (
plain) (
blame)
1
2
3
4
5
|
// expect error: continue outside a loop
// spec 4.8.1 and 4.7.1: continue inside a switch continues the enclosing loop, there is none here
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() { int k = 1; switch (k) { case 1: continue; } return 0; }
|