diff options
Diffstat (limited to 'tests/ui/iterators/ranges.rs')
-rw-r--r-- | tests/ui/iterators/ranges.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/iterators/ranges.rs b/tests/ui/iterators/ranges.rs new file mode 100644 index 000000000..925d2d61a --- /dev/null +++ b/tests/ui/iterators/ranges.rs @@ -0,0 +1,9 @@ +fn main() { + for _ in ..10 {} + //~^ ERROR E0277 + for _ in ..=10 {} + //~^ ERROR E0277 + for _ in 0..10 {} + for _ in 0..=10 {} + for _ in 0.. {} +} |