| // This crate depends on 2 crates with one of them depending on the other one. |
| // If the crates are not set correctly in the dependency chain, this crate won't |
| // compile. The order of the `extern crate` is important to trigger that bug. |
| pub fn greet(name: &str) { |
| println!("{}", alias_b::greeter(name)) |
| println!("{}", alias_b::default_greeter()) |
| /// This is a documentation. |
| /// mod3::am_i_the_world("world") == true |
| /// mod3::am_i_the_world("myself") == false |
| pub fn am_i_the_world(me: &str) -> bool { |
| fn test_am_i_the_world() { |
| assert!(super::am_i_the_world("world")); |
| assert!(!super::am_i_the_world("bob")); |