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
mod a {pubfnfoo(){}}mod b {pubfnfoo(){::a::foo();// call a's foo function}}
However, this no longer works on the 2018 edition.
It would be nice to have a comment explaining that this no longer is expected to work in the 2018 edition.
There is a note that says, "Beginning with the 2018 Edition, paths starting with :: can only reference crates", so maybe this example could be changed to reference something in a crate, like ::std or something.
The text was updated successfully, but these errors were encountered:
There is an example for using a leading
::
to reference the crate root:https://doc.rust-lang.org/reference/paths.html#path-qualifiers
However, this no longer works on the 2018 edition.
It would be nice to have a comment explaining that this no longer is expected to work in the 2018 edition.
There is a note that says, "Beginning with the 2018 Edition, paths starting with
::
can only reference crates", so maybe this example could be changed to reference something in a crate, like::std
or something.The text was updated successfully, but these errors were encountered: