You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code generates compiler errors which don't make sense.
mod a {pubmod b {pubstructFoo;}pubmod c {usesuper::b;pubstructBar(pub b::Foo);}// Comment out this line...pubuseself::c::*;}#[allow(unused_variables)]fnmain(){let x = a::c::Bar(a::b::Foo);// ...and this line, and it will compilelet y = a::Bar(a::b::Foo);}
Expected result: A working rust binary which does nothing.
Actual result: The following error messages:
% rustc unresolved.rs
unresolved.rs:13:13: 13:24 error: unresolved import
unresolved.rs:13 pub use self::c::*;
^~~~~~~~~~~
unresolved.rs:7:13: 7:21 error: unresolved import
unresolved.rs:7 use super::b;
^~~~~~~~
error: aborting due to 2 previous errors
The following code generates compiler errors which don't make sense.
Expected result: A working rust binary which does nothing.
Actual result: The following error messages:
Meta
The text was updated successfully, but these errors were encountered: