fune/third_party/rust/same-file/examples/is_same_file.rs
2018-04-06 13:23:37 +00:00

13 lines
228 B
Rust

extern crate same_file;
use std::error::Error;
use same_file::is_same_file;
fn try_main() -> Result<(), Box<Error>> {
assert!(is_same_file("/bin/sh", "/usr/bin/sh")?);
Ok(())
}
fn main() {
try_main().unwrap();
}