-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints
Description
This error comes from an example file that uses the library I'm working on. The library itself compiles fine, the example does not. Full error:
error[E0428]: the name `_` is defined multiple times
|
= note: `_` must be defined only once in the type namespace of this module
error: aborting due to previous error
For more information about this error, try `rustc --explain E0428`.
error: Could not compile `tinyhttp`.
The bug only occurs when I use a relative pub use.
// src/lib.rs
pub use crate::error::{HttpError, HttpResult}; // OK
pub use crate::request::parse::ResponseReader; // OK
pub use error::{HttpError, HttpResult}; // BREAKS
pub use request::parse::ResponseReader; // BREAKSUsing rustc 1.30.0-nightly (b2028828d 2018-08-16) on Debian sid amd64
The full project source can be found here. The error occurs in examples/cat.rs.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints