We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f7a108d + 3ee6ce3 commit 8a02263Copy full SHA for 8a02263
src/items.md
@@ -365,9 +365,10 @@ fn my_err(s: &str) -> ! {
365
```
366
367
We call such functions "diverging" because they never return a value to the
368
-caller. Every control path in a diverging function must end with a `panic!()` or
369
-a call to another diverging function on every control path. The `!` annotation
370
-does *not* denote a type.
+caller. Every control path in a diverging function must end with a `panic!()`,
+a loop expression without an associated break expression, or a call to another
+diverging function on every control path. The `!` annotation does *not* denote
371
+a type.
372
373
It might be necessary to declare a diverging function because as mentioned
374
previously, the typechecker checks that every control path in a function ends
0 commit comments