Skip to content

Instantly share code, notes, and snippets.

@akesling
Created December 9, 2019 14:15
Show Gist options
  • Save akesling/4f1e026d17aa6376ce3213e79c8902b3 to your computer and use it in GitHub Desktop.
Save akesling/4f1e026d17aa6376ce3213e79c8902b3 to your computer and use it in GitHub Desktop.
$ cargo build
Compiling foo v0.1.0 (/Users/akesling/Devel/rust/tonic-break/foobar)
error[E0428]: the name `client` is defined multiple times
--> /Users/akesling/Devel/rust/tonic-break/foobar/target/debug/build/foo-f7fc2b277b67ed62/out/example.foobar.v1.rs:89:1
|
17 | pub mod client {
| -------------- previous definition of the module `client` here
...
89 | pub mod client {
| ^^^^^^^^^^^^^^ `client` redefined here
|
= note: `client` 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 `foo`.
To learn more, run the command again with --verbose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment