diff options
author | Jakub Kotur <qtr@google.com> | 2020-12-21 17:28:16 +0100 |
---|---|---|
committer | Jakub Kotur <qtr@google.com> | 2021-03-05 16:51:50 +0100 |
commit | 133ff2839a461c4e067892371d69a72b342e966a (patch) | |
tree | 74e320595327ea8d3fd305356db2f489a2c9b086 /examples/is_same_file.rs | |
parent | 0a910eaeeb0d6c6f38a3ec5051ae7c30d4ff88fc (diff) | |
download | same-file-133ff2839a461c4e067892371d69a72b342e966a.tar.gz |
Initial import of same-file-1.0.6.
Bug: 155309706
Change-Id: Iaa5474ae70e5c8533693d858e824d2c070410571
Diffstat (limited to 'examples/is_same_file.rs')
-rw-r--r-- | examples/is_same_file.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/is_same_file.rs b/examples/is_same_file.rs new file mode 100644 index 0000000..6ba948a --- /dev/null +++ b/examples/is_same_file.rs @@ -0,0 +1,11 @@ +use same_file::is_same_file; +use std::io; + +fn try_main() -> Result<(), io::Error> { + assert!(is_same_file("/bin/sh", "/usr/bin/sh")?); + Ok(()) +} + +fn main() { + try_main().unwrap(); +} |