commit | bb6feaeae8ee834579ce61ea470ee7943fa0f70e | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sun Oct 02 21:25:20 2016 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Sun Oct 02 21:25:20 2016 -0700 |
tree | 39316e2303cd51c5d151b4f79e016976dbbaf729 | |
parent | 29f9ce1d2b81fde780d71e78cad1d3018d2c132a [diff] [blame] |
Looping
diff --git a/tests/cases/function.rs b/tests/cases/function.rs index 38cd72b..d80e29f 100644 --- a/tests/cases/function.rs +++ b/tests/cases/function.rs
@@ -36,6 +36,24 @@ }; } +fn looping() { + loop { + print(a); + }; + + while true { + print(a); + }; + + while let a = true { + print(a); + }; + + for a in b { + print(a); + }; +} + fn item() { struct S;