Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions src/items/use-declarations.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,18 @@ cannot be resolved unambiguously, they represent a compile-time error.
An example of re-exporting:

```rust
# fn main() { }
mod quux {
pub use quux::foo::{bar, baz};

pub use self::foo::{bar, baz};
pub mod foo {
pub fn bar() { }
pub fn baz() { }
pub fn bar() {}
pub fn baz() {}
}
}

fn main() {
quux::bar();
quux::baz();
}
```

In this example, the module `quux` re-exports two public names defined in
Expand Down