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

Fix Pattern trait unimplemented for [char; 2] #200

Merged
merged 1 commit into from Dec 27, 2021
Merged

Fix Pattern trait unimplemented for [char; 2] #200

merged 1 commit into from Dec 27, 2021

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Dec 27, 2021

Old standard libraries don't have this impl.

error[E0277]: expected a `Fn<(char,)>` closure, found `[char; 2]`
   --> src/runtime.rs:320:22
    |
320 |     repr.starts_with(&['t', 'f'])
    |          ----------- ^^^^^^^^^^^ expected an `Fn<(char,)>` closure, found `[char; 2]`
    |          |
    |          required by a bound introduced by this call
    |
    = help: the trait `Fn<(char,)>` is not implemented for `[char; 2]`
    = note: required because of the requirements on the impl of `FnOnce<(char,)>` for `&[char; 2]`
    = note: required because of the requirements on the impl of `Pattern<'_>` for `&[char; 2]`

GitHub Actions was down yesterday so this didn't get caught in CI.

@dtolnay dtolnay merged commit 72ca26e into master Dec 27, 2021
@dtolnay dtolnay deleted the isboolean branch December 27, 2021 20:10
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

Successfully merging this pull request may close these issues.

None yet

1 participant