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

E0277 - the trait bound (core::ops::Bound<_>, core::ops::Bound<()>): core::ops::RangeBounds<wire::ip::Cidr> is not satisfied #340

Closed
Ulrar opened this issue May 12, 2020 · 0 comments · Fixed by #341
Labels

Comments

@Ulrar
Copy link

Ulrar commented May 12, 2020

Hi,

Looks like 0.6 does not compile on rustc 1.45 :

error[E0277]: the trait bound `(core::ops::Bound<_>, core::ops::Bound<()>): core::ops::RangeBounds<wire::ip::Cidr>` is not satisfied
   --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/smoltcp-0.6.0/src/iface/route.rs:120:45
    |
120 |         for (prefix, route) in self.storage.range((Bound::Unbounded, Bound::Included(cidr))).rev() {
    |                                             ^^^^^ the trait `core::ops::RangeBounds<wire::ip::Cidr>` is not implemented for `(core::ops::Bound<_>, core::ops::Bound<()>)`
    |
    = help: the following implementations were found:
              <(core::ops::Bound<&'a T>, core::ops::Bound<&'a T>) as core::ops::RangeBounds<T>>
              <(core::ops::Bound<T>, core::ops::Bound<T>) as core::ops::RangeBounds<T>>

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
error: could not compile `smoltcp`.

Looks like it's doing the same thing on 1.43, am I doing something wrong or is there a supported version of rust I should be using ?

Thank you

zhaofengli added a commit to zhaofengli/smoltcp that referenced this issue May 15, 2020
Somehow type inference got confused. Fixes smoltcp-rs#340.
whitequark pushed a commit that referenced this issue Jun 2, 2020
Somehow type inference got confused. Fixes #340.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants