diff options
Diffstat (limited to 'vendor/camino/src/tests.rs')
-rw-r--r-- | vendor/camino/src/tests.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/camino/src/tests.rs b/vendor/camino/src/tests.rs index 305b76091..e84c227af 100644 --- a/vendor/camino/src/tests.rs +++ b/vendor/camino/src/tests.rs @@ -44,3 +44,11 @@ where { let _ = orig.into(); } + +#[cfg(path_buf_deref_mut)] +#[test] +fn test_deref_mut() { + // This test is mostly for miri. + let mut path_buf = Utf8PathBuf::from("foobar"); + let _: &mut Utf8Path = &mut path_buf; +} |