1 2 3 4 5 6 7 8 9
use is_root::is_root; fn main() { if is_root() { println!("You are root"); } else { println!("You are not root") } }