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

Add error message for invalid syntax in s![] #714

Merged
merged 1 commit into from
Sep 16, 2019
Merged

Commits on Sep 16, 2019

  1. FEAT: Add error message for invalid syntax in s![]

    Invalid syntax, like for example empty `s![]` or clearly invalid
    productions like `s![;;]` etc, end up in this new catch-all branch of
    the macro and produce a clearer error message.
    
        error: Invalid syntax in s![], expected at least one index or range
          --> src/foo.rs:11:13
           |
        11 |     a.slice(s![]);
           |             ^^^^
    bluss committed Sep 16, 2019
    Configuration menu
    Copy the full SHA
    3829f52 View commit details
    Browse the repository at this point in the history