Add test case that RangeTo notation works in return statements.
This commit is contained in:
parent
d0863adf24
commit
ca8578a953
1 changed files with 3 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue