Add test case that RangeTo notation works in return statements.

This commit is contained in:
Daniel Grunwald 2015-01-11 16:09:31 +01:00
parent d0863adf24
commit ca8578a953

View file

@ -12,6 +12,9 @@
fn foo() -> int { 42 }
// Test that range syntax works in return statements
fn return_range_to() -> ::std::ops::RangeTo<i32> { return ..1; }
pub fn main() {
let mut count = 0;
for i in 0u..10 {