diff options
Diffstat (limited to 'tests/coverage/loop_break_value.coverage')
-rw-r--r-- | tests/coverage/loop_break_value.coverage | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/coverage/loop_break_value.coverage b/tests/coverage/loop_break_value.coverage new file mode 100644 index 000000000..1f0630636 --- /dev/null +++ b/tests/coverage/loop_break_value.coverage @@ -0,0 +1,14 @@ + LL| |#![allow(unused_assignments, unused_variables)] + LL| | + LL| 1|fn main() { + LL| 1| let result + LL| 1| = + LL| 1| loop + LL| 1| { + LL| 1| break + LL| 1| 10 + LL| 1| ; + LL| 1| } + LL| 1| ; + LL| 1|} + |