Skip to content

Commit

Permalink
Merge pull request rust-lang#752 from rust-lang/leading-modsep-2018
Browse files Browse the repository at this point in the history
clarify note re. leading `::` in 2018
  • Loading branch information
ehuss authored Feb 10, 2020
2 parents 26c3fc7 + a4cdf6d commit c73c5a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/paths.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ mod a {
}
mod b {
pub fn foo() {
::a::foo(); // call a's foo function
::a::foo(); // call `a`'s foo function
// In Rust 2018, `::a` would be interpreted as the crate `a`.
}
}
# fn main() {}
Expand Down

0 comments on commit c73c5a1

Please sign in to comment.