summaryrefslogtreecommitdiffstats
path: root/third_party/rust/same-file/examples/is_same_file.rs
blob: 451a6af89c07cc02be5588437e5a7ca43674073b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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();
}