Adding an ignore annotation to an infinite loop so that it wont hang the tester.
This commit is contained in:
parent
4a5194a6d5
commit
a989ed8880
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ Rust currently provides three approaches to performing some kind of iterative ac
|
|||
|
||||
The infinite `loop` is the simplest form of loop available in Rust. Using the keyword `loop`, Rust provides a way to loop indefinitely until some terminating statement is reached. Rust's infinite `loop`s look like this:
|
||||
|
||||
```rust
|
||||
```rust,ignore
|
||||
loop {
|
||||
println!("Loop forever!");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue