Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow static variables in range expressions #6989

Closed
jdm opened this issue Jun 7, 2013 · 2 comments
Closed

Allow static variables in range expressions #6989

jdm opened this issue Jun 7, 2013 · 2 comments

Comments

@jdm
Copy link
Contributor

jdm commented Jun 7, 2013

static foo: int = 16;

fn main() {
    match 15 {
        3 .. foo => io::println(~"success"),
        _ => fail!()
    }
}
/tmp/rusttest.rs:5:13: 5:16 error: unexpected token: `foo`
/tmp/rusttest.rs:5         3 .. foo => io::println(~"success"),
                                ^~~
@jdm
Copy link
Contributor Author

jdm commented Jun 19, 2013

I'm surprised that #6245 didn't make this work.

@emberian
Copy link
Member

emberian commented Aug 5, 2013

Closing as a dupe of #7222

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants