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

error messages include paths that cannot possibly resolve when used #38283

Closed
whitequark opened this issue Dec 10, 2016 · 2 comments
Closed

error messages include paths that cannot possibly resolve when used #38283

whitequark opened this issue Dec 10, 2016 · 2 comments

Comments

@whitequark
Copy link
Member

E.g. let's say in src/wire/mod.rs I have:

pub use self::arp::Packet as ArpPacket;

If I now misuse a value of this type, I get an error like this:

error[E0277]: the trait bound `smoltcp::wire::Packet<&[u8]>: std::fmt::Display` is not satisfied
  --> examples/smoltcpdump.rs:22:28
   |
22 |             println!("{}", packet);
   |                            ^^^^^^ the trait `std::fmt::Display` is not implemented for `smoltcp::wire::Packet<&[u8]>`
   |
   = note: `smoltcp::wire::Packet<&[u8]>` cannot be formatted with the default formatter; try using `:?` instead if you are using a format string
   = note: required by `std::fmt::Display::fmt`

which of course does not refer to a path that exists.

@estebank
Copy link
Contributor

Related to #21934.

@Mark-Simulacrum
Copy link
Member

Duplicate, I think, not related. Closing in favor of #21934.

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

3 participants