Remove do ... while
loops from the tests and docs.
This commit is contained in:
parent
13c924c049
commit
f943667af3
15 changed files with 45 additions and 79 deletions
10
src/test/compile-fail/while-constraints.rs
Normal file
10
src/test/compile-fail/while-constraints.rs
Normal file
|
@ -0,0 +1,10 @@
|
|||
// error-pattern:unsatisfied precondition constraint (for example, init(y
|
||||
fn main() {
|
||||
|
||||
let y: int = 42;
|
||||
let x: int;
|
||||
loop {
|
||||
log(debug, y);
|
||||
while true { while true { while true { x <- y; } } }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue