-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Compiler suggested <unnamed> in a use #43189
Labels
Comments
Looks like it's because #!/bin/sh
set -ex
rm -rf a b c
cargo new --lib a
cargo new --lib b
cargo new --bin c
echo 'pub trait A { fn a(&self) {} } impl A for () {}' > a/src/lib.rs
echo 'a = { path = "../a" }' >> b/Cargo.toml
echo 'pub extern crate a;' > b/src/lib.rs
echo 'b = { path = "../b" }' >> c/Cargo.toml
echo 'extern crate b; fn main() { ().a(); }' > c/src/main.rs
cargo build --manifest-path c/Cargo.toml Running this gives the error:
(Here crate |
bors
added a commit
that referenced
this issue
May 30, 2018
Use crate name for reexported `extern crate` paths Fix #43189.
Yay! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Attempting to use that suggustion causes a compiler error itself, and the correct use statement is
use piston::window::Window;
I dont know how to reproduce this behavior, but it can likely be found by looking in the piston_window crate's source code.
The text was updated successfully, but these errors were encountered: